This is a migrated thread and some comments may be shown as answers.

How to bind multi lines data to chartview(Lineseries)

4 Answers 482 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Byunghoon
Top achievements
Rank 1
Byunghoon asked on 11 Feb 2015, 09:55 AM
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 ~

4 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 12 Feb 2015, 08:57 AM
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.

 
0
Byunghoon
Top achievements
Rank 1
answered on 04 Mar 2015, 05:22 AM
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
0
Martin Ivanov
Telerik team
answered on 04 Mar 2015, 02:33 PM
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.

 
0
shaswat
Top achievements
Rank 1
answered on 19 Jan 2021, 07:03 AM
how did you solve the problem of multiple line in one single line chart.
Tags
ChartView
Asked by
Byunghoon
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Byunghoon
Top achievements
Rank 1
shaswat
Top achievements
Rank 1
Share this question
or