Can i use the zoom functionality with more than one bar per timeperiod?

3 posts, 0 answers
  1. MichelVD
    MichelVD avatar
    2 posts
    Member since:
    Apr 2010

    Posted 26 Apr 2010 Link to this post

    Hi,

    i saw the zoom example and it works :)
    But now i want to add another piece of data for the same period: i have multiple data samples (in one object, with a datetime propery period and some properties which contain the data) for each day, and i want to display two or three bars and also zoom.
    But when i add another sample, i loose the zoom funcionality...
    I'm showing the 'periode' (period) on the X-axis.


     

    SeriesMapping seriesMapping = new SeriesMapping();

     

     

    ItemMapping itemMapping = new ItemMapping("SALES1", DataPointMember.YValue );

     

    seriesMapping.ItemMappings.Add(itemMapping);

    itemMapping =

    new ItemMapping("Periode", DataPointMember.XCategory );

     

    seriesMapping.ItemMappings.Add(itemMapping);

    RadChart1.SeriesMappings.Add(seriesMapping);

    seriesMapping =

    new SeriesMapping();

     

    itemMapping =

    new ItemMapping("SALES2", DataPointMember.YValue);

     

    seriesMapping.ItemMappings.Add(itemMapping);

    itemMapping =

    new ItemMapping("Periode", DataPointMember.XCategory);

     

    seriesMapping.ItemMappings.Add(itemMapping);

    RadChart1.SeriesMappings.Add(seriesMapping);


    Am i on the right track by inserting 2 seriesmappings objects or do i have to create 1 seriesmappings object and create all the itemmappings within that seriesmappings?

    Regards,
    Michel

  2. MichelVD
    MichelVD avatar
    2 posts
    Member since:
    Apr 2010

    Posted 27 Apr 2010 Link to this post

    Maybe the title isn't that clear: maybe this is better:
    Can i use the zoom functionality with more than one dataitem in the chart?
  3. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 29 Apr 2010 Link to this post

    Hello MichelVD,

    Unfortunately, at this moment it is not possible to use zoom/scroll in categorical mode (that is using XCategory) with more than one data series. Please, change DataPointMember.XCategory to DataPointMember.XValue in the ItemMappings. This will allow you to use zoom/scroll. Our developers are aware of this limitation and they will research the possibilities to fix it in the future versions of the control.

    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