Skip to main content

DxChartLegend.AllowToggleSeries Property

Specifies whether users can toggle series visibility

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor


public bool AllowToggleSeries { get; set; }

Property Value

Type Description

true, to allow users to toggle series visibility; otherwise, false.


Set the AllowToggleSeries property to true to show and hide series when a user clicks the corresponding legend item.


The AllowToggleSeries property does not affect legend items that use text templates.

<DxChart Data="@SalesData">
    @* ... *@
    <DxChartLegend AllowToggleSeries="true" Orientation="Orientation.Vertical" HorizontalAlignment="HorizontalAlignment.Right">
        <DxChartTitle Text="Legend">

Run Demo: Charts - Legend Customization

See Also