score:1

Accepted answer

you need to pass min and max values as Date Formats on scaleTime.

d3.scaleTime()
.domain( new Date(timeData[0]), new Date(timeData[1]) ) 
.range( [0,400] )

Also note that min value is lesser than max value.

Reason its not working is that it is considering them as String values.


Related Query