I'm trying to learn D3 and am having problems creating a simple line graph from an array of data objects.
I have an array of data objects that look like 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 a simple tutorial that creates a line graph, but when I plug in the data, neither the x axes or line will display. Does this have to do with date formatting?
I have an example up on JS Bin.
I really don't understand what the problem is, please help!