I want to pass the data using a json variable. In the below example the json is fetched from an external JSON file. can any one help me how to pass the data from a local variable as i am new to dc.js
queue()
.defer(d3.json, "sampledata.json") // sampledata.json is an external json file
.await(makeGraphs);
function makeGraphs() {
//function which proceses the data
}
i tried this
var sampledata = [ ....];
queue().defer(d3.json, "sampledata.json") // sampledata.json is an external json file
.await(makeGraphs);
function makeGraphs() {
//function which proceses the data
}
but did not work.