score:0

D3 scale must be an array. So I changed this

y.domain(0, d3.max(fakeTimeline, function(d) { console.log(d.CasesTotal);return Number(d.CasesTotal);}));

to this

y.domain([0, d3.max(fakeTimeline, function(d) { console.log(d.CasesTotal);return Number(d.CasesTotal);})]);

Related Query

More Query from same tag