Show items using Zooming and Scrolling

3 posts, 0 answers
  1. Chris Thierry
    Chris Thierry avatar
    138 posts
    Member since:
    Jun 2010

    Posted 21 Jul 2011 Link to this post

    Hi,

    I'm using a RadChart BarSeriesDefinition, in this chart I'm representing Cost by Months, one month represents one cost, for example I'm loading information for one user, this user has 2 years of data, so my chart will have 24 bars.

    The user can see the other months by scrolling the chart, so I'm loading 24 months but showing only 12. Sometimes could be 14 or 20 months, I don't know the quantity but I always need to show 12 in the screen.

    Is there any way of setting by default the last 12 months in my chart?

    Thank you.
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 26 Jul 2011 Link to this post

    Hello Chris,

    One possible option in this case would be to zoom in through code when the control is first rendered. This can be done by using the api of the chart. More information on this is available in the following topic:

    http://www.telerik.com/help/silverlight/radchart-features-zooming-and-scrolling.html

    You can also couple this logic with the underlying data - for example checking how many entries you have, prior to applying the zoom/scroll settings.
    I hope this gets you started properly.

    Kind regards,
    Yavor
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. DevCraft banner
  4. Chris Thierry
    Chris Thierry avatar
    138 posts
    Member since:
    Jun 2010

    Posted 26 Jul 2011 Link to this post


Back to Top