dimanche 11 janvier 2015

d3.Json array access and binding data


Vote count:

0




Here is the JSON data:


[26.4, {"name":"velo2","data":[[32,2.41],[33,4.25],[34,2.38],[46,0],[66,0],[39,0],[45,0.54],[30,0],[35,1.39]]}, {"name":"velo1","data":[[32,13.37],[33,2.62],[34,0.34],[46,2.41],[66,8.09],[39,1.77],[45,2.04],[30,1.77],[35,28.3]]} ]


How do I bind this data. I need both variables from the "velo1" and "velo2"; for instance in [32,2.41] velo2 should return growth2 = 33, speed2 = 2.41, etc. and velo1 should return growth1 = 33, speed1 = 13.31


I am a complete novice but have the code visualizing a stacked polar array diagram using static data fron a csv file but completely stumped using the JSON data formatted as it is available to my.


Help will be most welcome



asked 37 secs ago







d3.Json array access and binding data

Aucun commentaire:

Enregistrer un commentaire