The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Is there an easy way to change the existing value(s) of the ChartPoints. I''m trying to display real time data in a Pie Chart but the only way I''ve found to update the data is:
this.chartControl1.Series.Clear();
ChartSeries series1 = this.chartControl1.Model.NewSeries("Market");
series1.Points.Add(0, bCounter);
series1.Points.Add(1, iCounter);
series1.Points.Add(2, tCounter);
series1.Type = ChartSeriesType.Pie;
this.chartControl1.Series.Add(series1);
this.chartControl1.Refresh();
Is there a way just to change the value(s) of the point(s) without having to clear the dataset, then add the new values?
Thanks,
Dave Sausville
DJDavis Jebaraj Syncfusion Team March 9, 2005 10:08 PM UTC
Hi Dave,
You can access any of the points through the Series and Points collections:
this.chartControl1.BeginUpdate();
this.chartControl1.Series[0].Points[0].X = 6;
this.chartControl1.Series[0].Points[0].YValues[0] = 6000;
this.chartControl1.EndUpdate();
Regards,
Davis
ADAdministrator Syncfusion Team March 10, 2005 05:38 PM UTC
That did it. Thanks.
SUSuresh replied to Administrator February 23, 2018 12:50 PM UTC