This is a migrated thread and some comments may be shown as answers.

Need example for setting multiple CategoryAxis.AxisCrossingValue with Date

1 Answer 141 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Shohab
Top achievements
Rank 1
Shohab asked on 08 Apr 2013, 04:29 PM
All the examples in the API use an array of indices for setting this value.
http://docs.kendoui.com/api/dataviz/chart

We are trying to solve the need for positioning a second vertical line in the chart to mark today's date by adding a second vertical axis.  Is it even possible to set the AxisCrossingValues of the category index with an array of dates rather than indices?

Setting axisCrossingValue : [new Date(1/1/2013), new Date()] does not work.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 10 Apr 2013, 08:24 AM
Hello Shohab,

I am afraid what you would like to achieve is not supported in Kendo UI Categorical Charts (Bar, Column, Line etc) - it can be achieved only when XY Chart (Scatter / ScatterLine) is used.
 
Kind regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Shohab
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or