You must be logged in to post your query.
Home › Forums › Chart Support › Value type ‘dateTime’ not working properly
Tagged: DateTime
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.
dataPoints
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.
@someone12345,
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
You must be logged in to reply to this topic. Login/Register