Home Forums Chart Support Value type ‘dateTime’ not working properly

Value type ‘dateTime’ not working properly

Viewing 2 posts - 1 through 2 (of 2 total)
  • #36500

    I have data from backend where I have an array of elements like {x: some_date, y: some_value}.
    DateTime format from backend = “2018-03-09T17:30:00.000Z”

    I am formatting the array as:-

    x: new Date(x),

    and passing the output to dataPoints in data.

    But then, canvasjs is interpreting the dates incorrectly and showing myltiple y’s for an x. I have verified my data and there are no repeating dates. The same problem is happening for milisecond date format.



    Can you kindly create a JSFiddle reproducing the issue you are facing and share it with us along with sample data so that we can look into the code/chart options being used, understand the scenario better and help you out?

    Indranil Singh Deo
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.