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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change chart type at runtime

Thread ID:





76490 Sep 9,2008 03:18 PM UTC Sep 10,2008 04:42 AM UTC WPF 1
Tags: Chart
Ray Huger
Asked On September 9, 2008 03:18 PM UTC

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 04:42 AM UTC


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.


Please let us know if you have further queries.

Athaur Rahman GS


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