How to bind multi lines data to chartview(Lineseries)

4 posts, 0 answers
  1. Byunghoon
    Byunghoon avatar
    2 posts
    Member since:
    Feb 2015

    Posted 11 Feb 2015 Link to this post

    In WPF, I used a list to bind to itemsource fot ploting a line for Lineseries. But I don't know how to bind it to plot multi lines. Use list<list<>> ?
    I have to plot 500 lines on one line chart. Please help me ~
  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 12 Feb 2015 Link to this post

    Hi Byunghoon,

    In order to plot multiple series on the chart you can use a SeriesProvider. You can take a look at the SeriesProvider SDK example which demonstrates such scenario. 

    Please let me know if you have any further questions.

    Regards,
    Martin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Byunghoon
    Byunghoon avatar
    2 posts
    Member since:
    Feb 2015

    Posted 03 Mar 2015 in reply to Martin Link to this post

    First, thank you for your help. I solved the binding multiple line data.

    But, I have a problem. It is performance issue.
    I binded 2000 lines data (one line has 8 points) and chart display all lines.
    but when  I control zoom or pan, the chart is changed too slowly.

    Do you have any idea make it more fast? or is there any way like a dinamic binding?

    Thank you
  5. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 04 Mar 2015 Link to this post

    Hello,

    Indeed when you have such big amount of data the chart will create many UI elements which will load the rendering engine of the WPF framework and therefore the application will become slower. In order to boost the chart's performance you can consider using different RenderOptions for the series. The default one (XamlRenderOptions) uses the default framework's rendering engine. You can try the Direct2DRenderOptions instead and see if it works for you. You can read more about the series' RenderOptions in the Rendering help article.

    Regards,
    Martin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top