javascript - Creating a line graph from array of data objects -
i'm trying learn d3 , having problems creating simple line graph array of data objects.
i have array of data objects this...
[ {date: "03/04/15", rain: "1.2"}, {date: "03/05/15", rain: "2.3"}, {date: "03/06/15", rain: "0.0"}, {date: "03/07/15", rain: "4.2"}, {date: "03/08/15", rain: "0.3"}, {date: "03/09/15", rain: "0.0"} ]
i've tried following simple tutorial creates line graph, when plug in data, neither x axes or line display. have date formatting?
i have example on js bin.
i don't understand problem is, please help!
the x axis should d3.time.scale , since date property strings have convert proper date objects doing new date();
Comments
Post a Comment