Hi,
I got a radchartview with some scatterlineseries. When the user changes a parameter, the chart should be updated with a new series. That works but the old series is still on it. I tried radchartview.series.clear, but I would need something to clear/reset the whole chart before adding the new series.
How can i do that, please.
4 Answers, 1 is accepted
0
Hi Patrick,
You can use the following code to reset the chart:
I hope this will be useful. Let me know if you have additional questions.
Regards,
Dimitar
Progress Telerik
You can use the following code to reset the chart:
radChartView1.Axes.Purge();
radChartView1.Series.Clear();
I hope this will be useful. Let me know if you have additional questions.
Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ian
Top achievements
Rank 2
Bronze
Iron
Iron
answered on 04 Dec 2018, 10:50 AM
I have tried this with a pie chart, and I can't delete the 'old' image (User experience means that the old chart image is no longer valid, and user expects to see an empty space, not the old pie chart)
Any more suggestions?
0
Hi Ian,
If you are not adding another series you will need to invalidate the chart:
I hope this will be useful. Let me know if you have additional questions.
Regards,
Dimitar
Progress Telerik
If you are not adding another series you will need to invalidate the chart:
radChartView1.Axes.Purge();
radChartView1.Series.Clear();
radChartView1.Invalidate();
I hope this will be useful. Let me know if you have additional questions.
Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ian
Top achievements
Rank 2
Bronze
Iron
Iron
answered on 05 Dec 2018, 08:54 AM
Perfect!
Thanks Dimitar