You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
The problem, however, is I do not believe
d3
has atime
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
andtimeMonths
, (notime
) 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 thesimple/line
folder uses this time parser so I would really like to figure it out.The text was updated successfully, but these errors were encountered: