Need example for setting multiple CategoryAxis.AxisCrossingValue with Date

2 posts, 0 answers
  1. Shohab
    Shohab avatar
    3 posts
    Member since:
    Dec 2011

    Posted 08 Apr 2013 Link to this post

    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.
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 10 Apr 2013 Link to this post

    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!
Back to Top