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.
Unfortunately, activation email could not send to your email. Please try again.

Changing value of ChartPoints

Thread ID:





25852 Mar 8,2005 01:32 PM Feb 23,2018 07:50 AM Windows Forms 3
Tags: Chart
Administrator [Syncfusion]
Asked On March 8, 2005 01:32 PM

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

Davis Jebaraj [Syncfusion]
Replied On March 9, 2005 05:08 PM

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

Administrator [Syncfusion]
Replied On March 10, 2005 12:38 PM

That did it. Thanks.

Replied On February 23, 2018 07:50 AM

That did it. Thanks.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.