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

Zooming on the X and Y axis with DataSeries

3 Answers 172 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Michael Lang
Top achievements
Rank 1
Michael Lang asked on 24 Mar 2010, 05:02 PM
Hi,

I want to plot several series on a chart and then be able to use the new Zoom features to be able to "zoom in" on certain sections.

I've looked at the example for zooming and scrolling example, however this only plots one series, using the SeriesMapping property on the RadChart:

RadChart1.SeriesMappings

So I tried using the Dataseries property to hold the multiple series data, I wanted to plot:

RadChart1.DefaultView.ChartArea.DataSeries

On the initial load of the page everything was fine, however as soon as I select an area to zoom to, the chart disappears and is replaced with "No Data Series".

Is there an example of zoom on the X and Y axis, with multiple series?

Many Thanks

3 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 29 Mar 2010, 02:10 PM
Hi Michael,

Zooming and scrolling is only available when RadChart is databound i.e. you need to set its ItemsSource property. You can compose a collection of your the business objects you use and send it to RadChart. This is actually the purpose of the SeriesMappings - RadChart will create the DataSeries and DataPoints for you.

I have attached a small example.

Best regards,
Ves
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.
0
James
Top achievements
Rank 1
answered on 21 Apr 2010, 07:12 AM
Hello,

I'm having problems with scrolling in your latest internal build (released on the 16th).

The X axis labels/ticks are not updating while I scroll left or right, they just remain static, while the chart does scroll as expected.

I have tried your attached project and the X axis does not even zoom, so scrolling has no affect. (The Y axis zooms and scrolls fine, no problems there).

Can you replicate this?

Regards,

James.
0
Ves
Telerik team
answered on 26 Apr 2010, 12:36 PM
Hello James,

Thanks for the note. Indeed, this example seems to expose a special case, which is not currently covered -- there is no XValue mapping. I will notify our developers and meanwhile, please add an item mapping for XValue. The attachment shows this with DateTime value, but it is not mandatory. You can use a simple counter if you do not have DateTime values.

Best regards,
Ves
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
Chart
Asked by
Michael Lang
Top achievements
Rank 1
Answers by
Ves
Telerik team
James
Top achievements
Rank 1
Share this question
or