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

Binning when moving between hours and larger intervals?

1 Answer 67 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 04 Jun 2011, 12:07 AM
Does the RadTimeBar control take care of binning for me?  Consider the example of email in my inbox.  Let's say I wanted to plot the number of emails per time interval using the received date/time.  Do I simply create an observable collection of email objects and specify the XValuePath as the received DateTime object?  What would I specify for the YValuePath?  Or do I need to create a new collection that specifies how many emails I received in a given hour so XValuePath is the DateTime and YValuePath is the count?  In that case does the RadTimeBar automatically combine those hour bins into days as I use the resizeable scrollbar to increase the size of the interval?  Or do I need to create a new collection when the RadTimeBar.ItemIntervalChanged event fires?

This information is not really called out in the quick starts or documentation.

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 08 Jun 2011, 10:29 AM
Hello Michael,

The content of the TimeBar is independent from the TimeBar control. This means that you need to specify the XValuePath and the YValuePath of the SparkLine so that the YValue will be the count of the emails and the XValue will be the hour in which they were received. If you want to combine the X values when the interval is changed, you need to do this manually according to the new interval. The TimeBar exposes functionality for achieving this specification. For example you can use the RadTimeBar.ItemIntervalChanged event or the RadTimeBar.CurrentItemInterval property to take the current item interval. Please note that the RadTimeBar.CurrentItemInterval is available in the Latest Internal Build.

I hope that this information helps.

Best wishes,
Polina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TimeBar
Asked by
Michael
Top achievements
Rank 1
Answers by
Missing User
Share this question
or