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.

Change chart type at runtime

Thread ID:

Created:

Updated:

Platform:

Replies:

76490 Sep 9,2008 11:18 AM Sep 10,2008 12:42 AM WPF 1
loading
Tags: Chart
Ray Huger
Asked On September 9, 2008 11:18 AM

When I do the following:

mySeries.Type = ChartTypes.Line;

I get the msg:

An unhandled exception of type 'System.NullReferenceException' occurred in Syncfusion.Chart.WPF.dll

Additional information: Object reference not set to an instance of an object.

The "Chart Series Types" documentation says: "The following lines of code can be used to change the ChartSeries type." But does not do so.



Administrator [Syncfusion]
Replied On September 10, 2008 12:42 AM


Hi,

Thanks for your interests in Syncfusion products. The exception mentioned by you is thrown when the ChartSeries (mySeries) object is null. A sample on changing the ChartSeries types at runtime is available in the following location.

http://www.syncfusion.com/development/uploads/ChartTypesSample_9e30c4a2.zip

Please let us know if you have further queries.

Regards,
Athaur Rahman GS


CONFIRMATION

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.

;