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

Facing problem on Dynamic chart type change

When i change graph type and graph colour dynamically and apply it,
At the time of calling ShowDialog() getting exception of "Object reference not set instance of a object"
Some one also post this type issue and the anser is in below url.But not able to open the url.


http://files.syncfusion.com/support/user/uploads/charttypessample_9e30c4a2.zip

1 Reply

JA Jayavigneshwaran Syncfusion Team January 14, 2015 11:19 AM UTC

Hi Vaibhav,

Thanks for using Syncfusion product.

We have analyzed. We replicated the scenario in our sample, but we are not able to reproduce the issue reported.

Please find the below code snippet to change the type of the series in button click.

[CS]

private void button1_Click(object sender, EventArgs e)

        {

            this.chartControl1.Series[0].Type = ChartSeriesType.Spline; // series type is changed to spline

        }

We have also made a sample to illustrate this. Find it from the below location.
Attachment.zip

If you still face any concern, kindly modify the sample and revert back to us with replication procedure.

This will be helpful for us to fix the issue sooner.

Please let us know if you have any concern.

Thanks,

Jayavigneshwaran



Loader.
Live Chat Icon For mobile
Up arrow icon