score:0

Minor change:

The "date" column being used in the code is based on the reference data. In your case, it should be changed to "Year".

Changing:

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

to

color.domain(d3.keys(data[0]).filter(function(key) { return key !== "Year"; }));

and

d.date = parseDate(d.date);

to

d.date = parseDate(d.Year);

Here's a new block:

https://bl.ocks.org/shashank2104/8d4aa05b7cf14d15099e0a0c47476f0e/d0c76a98426d7524b97f5c815b05c3d91d5b6dd0

Hope this helps.


Related Query

More Query from same tag