score:4

If you're using a JSON file then the code is going to be largely the same just replace d3.csv with d3.json.

If the data is already loaded in the browser then you can remove this function and just run:

var experiments = JSON.parse(json_object) //if json_object is still a string
var ndx = crossfilter(experiments)

and the rest of the code will be the same.


Related Query

More Query from same tag