score:4

from version 4 you have to use d3.scaletime()

score:6

use d3.timescale() instead of d3.time.scale()

the d3.js syntax changed in version 4 so that d3.time is no longer used.

you either need to import d3.js version 3

npm install d3@3

or change your code to use d3.js version 4 syntax

d3.timescale();

score:14

you're using d3 v4. this link below is your solution to convert old version to what you using now, should be straight forward.

https://github.com/d3/d3/blob/master/changes.md


Related Query

More Query from same tag