javascript - multichart line d3.js transform json -


i have diagram: http://bl.ocks.org/mbostock/3884955
, want change file .tsv .json

i change method :

d3.json("data2.json", function(error, data) { color.domain(d3.keys(data[0]).filter(function(key) { return key !== "date"; }); 

and change date format format json

this file example json:

[ {"date": 20111001, "new york": 63.4 }, {"date": 20111002, "new york": 58.0 }, {"date": "20111003", "new york": 53.3 } ]

but now, dont show diagram.
problem?? need change other method?

if json data correctly formatted , evaluates same data structure tsv data, shouldn't need make other change.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -