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

show/hide series

I am using syncfusion 5.2 chart control. I have a requirement that i need to show/hide series of line chart. I know that there is a way to achieve this using checkbox in legend. But my functionality is different. I want to show hide form button which is on a form, not in chart control.
I will be very thankful if anyone could help me with this.


2 Replies

MA Manohari Syncfusion Team July 16, 2008 05:49 AM UTC

Hi Prabhjeet,

It is possible to show or hide the particular Series in a Chart using the ChartSeries.Visible property as given below

Sample Code:

this.ChartControl1.Series[0].Visible=true;

I have attached a sample that shows or hide based on the input from check box in the Form, in the link below.

http://websamples.syncfusion.com/samples/Chart.Windows/F75193/Sample1.htm

Please let me know if this meets your requirement. Thanks for your patience.

Regards,
Manohari.R



MA Manohari Syncfusion Team July 16, 2008 08:19 AM UTC

Hi Prabhjeet,

It is possible to show or hide the particular Series in a Chart using the ChartSeries.Visible property as given below

Sample Code:

this.ChartControl1.Series[0].Visible=true;

I have attached a sample that shows or hide based on the input from check box in the Form, in the link below.

http://websamples.syncfusion.com/samples/Chart.Windows/F75193/Main.htm

Please let me know if this meets your requirement. Thanks for your patience.

Regards,
Manohari.R


Loader.
Live Chat Icon For mobile
Up arrow icon