Daylight Savings - RadChartView

2 posts, 0 answers
  1. Shaun
    Shaun avatar
    18 posts
    Member since:
    May 2012

    Posted 08 May 2012 Link to this post

    I need to be able to accurately depict daylight savings on a radchartview.   My assumption is that this might be handled by binding UTC data to the x axis, and somehow overriding the X axis labels/values (both on the axis and when selecting a point or whatever).

    My goal is that for 23 hour days, I would need the label to just skip the appropriate hour.  For 25 days, the label would repeat I suppose.  This may conflict with my above assumption however.

    Is this possible?  Are there any samples or examples which can show how to approach this?  How have other customers approached this issue?  "Workarounds" are welcome, as well as general practical advice :)
  2. Nikolay
    Admin
    Nikolay avatar
    386 posts

    Posted 11 May 2012 Link to this post

    Hi,

    What you could do is run your data through the DateTime.ToUniversalTime method in order to have it intact at all times. You can find more information here. As for the chart itself, once you have used this method, there wouldn't be a need to override labels, the only thing you would need to do is use the DateTimeCategorical axis type. For more information on it, have a look at this help topic. 

    Kind regards,
    Nikolay
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft banner
Back to Top