Zooming on the X and Y axis with DataSeries

4 posts, 0 answers
  1. Michael Lang
    Michael Lang avatar
    1 posts
    Member since:
    Feb 2010

    Posted 24 Mar 2010 Link to this post

    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
  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 29 Mar 2010 Link to this post

    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.
  3. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 21 Apr 2010 Link to this post

    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.
  4. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 26 Apr 2010 Link to this post

    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.
Back to Top