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

Daylight Savings - RadChartView

1 Answer 55 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shaun
Top achievements
Rank 1
Shaun asked on 08 May 2012, 05:27 PM
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 :)

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 11 May 2012, 11:38 AM
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 >>
Tags
ChartView
Asked by
Shaun
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or