Chart max data capacity

2 posts, 1 answers
  1. Amir Kotler
    Amir Kotler avatar
    3 posts
    Member since:
    Aug 2009

    Posted 16 Aug 2009 Link to this post

    Hi,

    I craeted a chart with "LineSeriesDefinition" and the ItemSource is ObservableCollection<ObservableCollection<T>>
    When <T> has the next properties:

    "Tab (string)", "Date (DateTime)", "Count (int)"



    for each sub list I made the next definitions:

     

    SeriesMapping sm1 = new SeriesMapping();

     

     

    LineSeriesDefinition d1 = new LineSeriesDefinition();

     

    d1.ShowItemLabels =

    true;

     

    d1.ShowItemToolTips =

    true;

     

     

    sm1.SeriesDefinition = d1;

    sm1.LegendLabel = objectValue.ToString();

    sm1.CollectionIndex = collectionIndex;

     

    sm1.ItemMappings.Add(

    new ItemMapping("Tab", DataPointMember.LegendLabel));

     

    sm1.ItemMappings.Add(

    new ItemMapping("Tab", DataPointMember.Label));

     

    sm1.ItemMappings.Add(

    new ItemMapping("Date", DataPointMember.XValue));

     

    sm1.ItemMappings.Add(

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

     

    chart.SeriesMappings.Add(sm1);


    Everyting works fine untill I giving the ItsmSource a struct with the next capacity 13 ObservableCollections that each contains an ObservableCollection with 15 instances of T, then all the application crash

  2. Answer
    Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 18 Aug 2009 Link to this post

    Hello Amir Kotler,

    We are unable to reproduce the problematic behavior in our local tests. Please review the attached sample application that follows your guidelines and let us know how we can observe the issue so we can advise you further (note the application uses the latest official version of the controls).


    Regards,
    Manuel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top