We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Changing value of ChartPoints

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

3 Replies

DJ Davis 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

AD Administrator Syncfusion Team March 10, 2005 05:38 PM UTC

That did it. Thanks.

SU Suresh replied to Administrator February 23, 2018 12:50 PM UTC

That did it. Thanks.


Live Chat Icon For mobile
Up arrow icon