I am generating an zoomable chart by using d3.js.
chart data is being received as json object. how to change the following code to work with JSON object
d3.json("mydata.json", function(json) {
//TODO:
});
instead of file name "msdata.json" I want to use Json object. please help me how to do this.