# Legend Toggle

## Content



**FlexChart** allows you to toggle the visibility of a series in the plot, when you click the series item in the legend by means of the <span data-popup-content="This property is available in \u003ca href=\u0022/componentone/api/wpf/online-flexchart/dotnet-api/C1.WPF.Chart/C1.WPF.Chart.FlexChartBase.LegendToggle.html\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022/componentone/api/wpf/online-flexchart/dotnet-api/C1.WPF.Chart/C1.WPF.Chart.FlexChartBase.LegendToggle.html\u0022\u003e.NET Framework\u003c/a\u003e." data-popup-title="LegendToggle" data-popup-theme="ui-tooltip-green qtip-green">LegendToggle</span> property.

The default value of the **LegendToggle** property is False. To enable series toggling, you need to set the **LegendToggle** property to True.

Here is the code snippet:

**csharp**

```csharp
flexChart.LegendToggle = true;
```

![](https://cdn.mescius.io/document-site-files/images/8ba28e07-1633-4a6a-9114-13b9f1f04eed/images/imagesext/wpfflexchartlegendtoggle.png)