Yvalue does not show on the graph after rebind

2 posts, 0 answers
  1. Michael
    Michael avatar
    1 posts
    Member since:
    Jan 2011

    Posted 16 May 2012 Link to this post

    Hi Guys,

    I am using wpf to create a live data reporting software. I used the radchart control to show the live line graph. Following is the example code:
    xaml code:

    <chart:RadChart x:Name="chart1" AxisElementBrush="#FFD43636">


    <charting:SeriesMapping LegendLabel="Value">


    <charting:LineSeriesDefinition ShowItemLabels="False"></charting:LineSeriesDefinition>


    <charting:ItemMapping FieldName="index" DataPointMember="XValue"></charting:ItemMapping>

     <charting:ItemMapping FieldName="value" DataPointMember="YValue"></charting:ItemMapping>



    Code_behind is:

    List<indexsandnumbers> data = new List<indexandnumbers>();
    for (int i = 1; i < 999999; i++)

       index = i;
       value = i*1.3;
       data.add(new indexsandnumbers(index,value));

       chart1.Itemsource = data;

    However, I can only see the Xvalue increase and there is no Yvalue in the chart1 after I run the application.

    The only way to show the line chart is I stop the loop, I can not get the line chart during the loop.

    Any helps is appreciated.

    Thank you very much.

  2. Rosko
    Rosko avatar
    137 posts

    Posted 21 May 2012 Link to this post

    Hi Michael,

    Have you seen the online demos regarding the live performance of RadChart?

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top