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:-
arr.map(obj=>{
return{
…obj,
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.