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

Changing value of ChartPoints

Thread ID:





25852 Mar 8,2005 06:32 PM UTC Feb 23,2018 12:50 PM UTC WinForms 3
Tags: Chart
Administrator [Syncfusion]
Asked On March 8, 2005 06:32 PM UTC

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

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

That did it. Thanks.

Replied On February 23, 2018 12:50 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon