DateTimeCategorical that uses DateTime as the time component

Thread is closed for posting
3 posts, 0 answers
  1. Mike
    Mike avatar
    17 posts
    Member since:
    Jun 2012

    Posted 09 Jul 2014 Link to this post


    I'm trying to graph data spread over several days at a fixed interval.  For example here is some sample data (assume all the data have an interval of 1 hour):

    July 1st, 1pm, 1000
    July 1st, 2pm, 1050
    July 1st, 3p, 1025
    July 2nd, 1pm, 1200
    Jiuly 2nd 2pm, 1100

    When I try to call setDateTimeComponent to set the date time component, I can't find an option that allows me to graph all the points over several days.

    DateTimeComponent.TIME_OF_DAY lets me graph over a single day, but does not work for multiple days
    DateTimeComponent.DATE seems to only graph the days and causes a graphical glitch when you have multiple points in the same day as in my example

    Is there a way to graph the above example?  If there are only 3 days, I'd like to graph all the points in each day.
  2. Mike
    Mike avatar
    17 posts
    Member since:
    Jun 2012

    Posted 09 Jul 2014 in reply to Mike Link to this post

    Just to clarify: I want to graph not only the day ticks but also the hours inside the days.  So if I have 3 days with 100 points in those 3 days, I want to graph all 100 points.
  3. Victor
    Victor avatar
    1358 posts

    Posted 10 Jul 2014 Link to this post

    Hello Mike,

    I have answered your question in the support thread about the same issue. In short, you can set the DateTimeComponent to HOUR.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top