RadChartView Horizontal Axis for duplicate dates

2 posts, 0 answers
  1. Tarun
    Tarun avatar
    6 posts
    Member since:
    Jan 2012

    Posted 10 Jul 2013 Link to this post

    Hi All,

    I have a requirement to plot date time data on the RadCartesianChart, I have multiple series but each has a value and a datetime , what type of Horizontal Axis should I be choosing if my collection can have multiple points for the same date time

    So for example, for 27th October 2013, I expect the series to have,
    DateTime                          Value
    27/10/2013 1:45:00 62.5
    27/10/2013 2:00:00 32.5
    27/10/2013 2:15:00 32.5
    27/10/2013 2:30:00 32.5
    27/10/2013 2:45:00 32.5
    27/10/2013 2:00:00 99.1
    27/10/2013 2:15:00 99.1
    27/10/2013 2:30:00 100.2
    27/10/2013 2:45:00 65.5
    27/10/2013 3:00:00 32.5

    Please refer to the attached screen shot of how I would expect the graph to look (please ignore the values on the y axis in the graph, they will not match with those specified in the example above). 

    For those familiar with financial vertical would recognize this as the Long day when the clock change takes place and the 2nd hour is duplicated when dealing with GMT +1 timezone.  


  2. Petar Kirov
    Petar Kirov avatar
    425 posts

    Posted 15 Jul 2013 Link to this post

    Hi Tarun,

    Generally, for plotting DateTime data on the horizontal axis you can use DateTimeContinuousAxis which may be configured like this:
    <telerik:DateTimeContinuousAxis MajorStep="15"
                          LabelFormat="dd/MMM/yyyy HH:mm:ss" />

    As for the Daylight saving time support, the control relies on the .NET Framework and does not provide specific options for customizing its behavior.

    First I would recommend reading this blog post on MSDN, detailing the problems associated with DST. It will give you some ideas about how to deal with it. 
    Next for RadCartesianChart you can use a label template with a converter to change axis labels presentation as per your requirement.

    I have attached a small project were you can test your solution.

    I hope this helps.

    Petar Kirov
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft R3 2016 release webinar banner
Back to Top