Stock chart - Dates are appearing incorrectly in X axis

0 Answers 221 Views
Charts
Deepesh
Top achievements
Rank 1
Iron
Deepesh asked on 26 Nov 2021, 08:42 AM

Hello Team,

I am using line type stock chart for multiple series where I have dates like: "01-Jan-2021", "04-Jan-2021" and so on. I am using new Date() to parse the dates to Kendo acceptable format. Chart is rendering but dates are wrong on the X axis labels as well as tooltip. Data set contains multiple attributes along with date starting from "01-Jan-2021" but in the chart it is starting from "27-Dec-2020" that is incorrect and it is happening for all next data points. All data points showing incorrect date. I have tried to change date format by using getTime() method (referring Kendo API Data) but no luck. When I change the date range by using navigator it shows me correct start and end date in information popup which appears for few seconds but x axis labels are incorrect.

Could you please help me to understand what I am doing wrong here.

Thanks in advance.

 

Regards,

Deepesh

Deepesh
Top achievements
Rank 1
Iron
commented on 26 Nov 2021, 11:55 AM

Never mind. It is resolved by using baseUnit.

Thanks :)

Mohammed
Top achievements
Rank 1
commented on 10 Dec 2022, 03:04 PM

Hi Deepesh,

I am also getting similar issue. Could you please share the example code? Thanks.

No answers yet. Maybe you can help?

Tags
Charts
Asked by
Deepesh
Top achievements
Rank 1
Iron
Share this question
or