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.

How to change chart type from Line to Bar

Thread ID:





55619 Feb 1,2007 12:16 PM Feb 2,2007 05:47 AM Windows Forms 1
Tags: Chart
Ganghua Fan
Asked On February 1, 2007 12:16 PM

How to change chart type from Line to Bar without recreate the chart.

Administrator [Syncfusion]
Replied On February 2, 2007 05:47 AM


Thank You for your interest in Syncfusion Products.

You can change the Line Chart in to a Bar Chart without recreating the chart by changing the ChartSeriesType of the Series added to the ChartControl under any button_Click event as shown in the code snippet below,

private void buttonBarSeries_Click(object sender, System.EventArgs e)
//changes the SeriesType to Bar.

Also kindly take a look at the attached sample to get the above points in clear.

Let me know if you have any queries.

Thanks & Regards,



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.