Webapp use D3.js (Javascript) to load a dataset and show the console log

timchen
timchen Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered, Dataiku DSS Developer Posts: 7 ✭✭✭
edited July 16 in Using Dataiku

Hello,

I want to bring my D3 visualization to Dataiku by creating a Webapp, but I don't know how to make the dataset to the array like local D3 library.

const data = {
A: "./A.csv",
B: "./B.csv",
};
const promises = [d3.csv(data.A), d3.csv(data.B)];
 

I want to know how I can do the same thing in Dataiku Webapp. I checked few articles and discussion, but none of them has exact match to my question.

I even try the sample code:

dataiku.fetch('my_dataset',
    function(dataFrame) {
         console.log("dataset load succeed");
         // action on load success
         console.log(dataFrame);
    }
);

and I still don't know how it works.

Another question is, how do I see the data in console.log() in Dataiku?

Thanks in advanced.

Answers

Setup Info
    Tags
      Help me…