Help to start ChartView

2 Answers 22 Views
ChartView
Massimo
Top achievements
Rank 1
Iron
Massimo asked on 08 Feb 2024, 08:10 AM

Hello everyone,

I'm new to Telerik and a quite beginner in C#. I would like to use ChartView to display a real-time value that I read every X milliseconds and add it to the graph. The X-axis should indicate seconds, so each point is defined in terms of X and Y. Several thousand points need to be generated and displayed. The chart should display 3 curves. 1 RealTime curve , 1 Superior Limit that is fixed, 1 Inferior Limit that is fixed.

Could someone help me get started on this? (what structure for the points, adding series). Every help is welcome.

Cheers

Massimo

2 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 09 Feb 2024, 09:28 AM

Hello Massimo,

We have an example of this in our demo application (see attached). You can see the code in it as well. 

Let me know if you have additional questions. 

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Massimo
Top achievements
Rank 1
Iron
answered on 13 Feb 2024, 10:11 AM | edited on 13 Feb 2024, 10:11 AM

Hi Dimitar,

Thank for the info.

I built an example that mimik my actual application. 3 scatter lines generated where a new point is added every 10ms.

All this is multiplied by 4 ( 4 RadCartesianChart in my mainwindow). Until ~1500points the refresh ok but after it 's bad or even the application is not responding. With my actual free component it still works but slow. I expected much more from a professionnal component.

Am I doing something wrong ? Could you look at my code ?

Thanks for your help

Massimo

Dimitar
Telerik team
commented on 13 Feb 2024, 02:01 PM

Hi Massimo,

Your approach is correct. However, such an interval is too small for the repainting of such an amount of points. You will get better results with larger intervals for example 100ms. You can try changing the render options as well: WPF ChartView - Rendering - Telerik UI for WPF.

Let me know if you have additional questions.

Dimitar
Telerik team
commented on 13 Feb 2024, 02:34 PM

Hi Massimo,

Another approach you can try for such cases is using spakline. More information is available here: WPF Sparkline - Overview - Telerik UI for WPF

Massimo
Top achievements
Rank 1
Iron
commented on 13 Feb 2024, 02:44 PM

Hi Dimitar,

Sparkline will not work because you can not display axis. I will try to change the render options and will let you know.

Thanks

Massimo 

Massimo
Top achievements
Rank 1
Iron
commented on 15 Feb 2024, 01:43 PM

Hi Dimitar,

I tried try to change the render options but no significant improvements. I stopped my tests and will try another library. Telerik can not achieve my expectation in terms of speed.

Thanks for your help

Massimo 

Tags
ChartView
Asked by
Massimo
Top achievements
Rank 1
Iron
Answers by
Dimitar
Telerik team
Massimo
Top achievements
Rank 1
Iron
Share this question
or