score:1

Accepted answer

A few things:

  1. I can't make any sense out of your parseTime function. You parse it, then format it to a string, then parse it again, why?
  2. Your x-axis doesn't show because your SVG needs to be sized to the full width/height, not width/height minus margins.
  3. Your data is not-sorted by the x-axis variable.
  4. Your y scale domain is not being properly set.

Fixing all these problems results in this here.


Related Query

More Query from same tag