Binning when moving between hours and larger intervals?

2 posts, 0 answers
  1. Michael
    Michael avatar
    24 posts
    Member since:
    Sep 2010

    Posted 03 Jun 2011 Link to this post

    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.
  2. Missing user
    Missing user avatar

    Posted 08 Jun 2011 Link to this post

    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,
    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
  3. DevCraft banner
Back to Top