Looking at the example line_garbage_zoom.js (and many other line examples). It looks like the date needs to be parsed:
var parseDate = d3.time.format("%YM%m").parse;
And the parser is used like so:
x = function(d) {
return parseDate(d.month);
}
The problem, however, is I do not believe d3 has a time method, so I wonder if this example is outdated.
Here is how I import D3
import * as d3 from 'd3'
When I inspect the import it has methods available such as timeParse and timeMonths , (no time) and I can not quite parse the time how the line graph expects it.
Am I right in thinking that d3.time is no longer available? Every example in the simple/line folder uses this time parser so I would really like to figure it out.