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

Show items using Zooming and Scrolling

2 Answers 61 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Chris Thierry
Top achievements
Rank 1
Chris Thierry asked on 21 Jul 2011, 04:57 PM
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 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 26 Jul 2011, 09:25 AM
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!

0
Chris Thierry
Top achievements
Rank 1
answered on 26 Jul 2011, 08:35 PM

Tags
Chart
Asked by
Chris Thierry
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Chris Thierry
Top achievements
Rank 1
Share this question
or