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

DateTimeCategorical that uses DateTime as the time component

2 Answers 42 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mike
Top achievements
Rank 1
Mike asked on 09 Jul 2014, 07:58 PM
Hi,

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 Answers, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 09 Jul 2014, 08:20 PM
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.
0
Victor
Telerik team
answered on 10 Jul 2014, 08:16 AM
Hello Mike,

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

Regards,
Victor
Telerik
 

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.

 
Tags
Chart
Asked by
Mike
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Victor
Telerik team
Share this question
or