score:1

Accepted answer

Given your date key/value pair...

date: "2014"

... your specifier is incorrect. It should be:

d3.timeParse("%Y");

Here is the updated plunker: https://plnkr.co/edit/k8aZSlyCCtpWArOO0mki?p=preview

PS: You don't even need to parse the dates. Since your y scale uses a categorical variable, just use the dates as they are right now, that is, simple strings.


Related Query

More Query from same tag