DxChartLegend.AllowToggleSeries Property

Specifies whether users can toggle series visibility

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

[Parameter]
public bool AllowToggleSeries { get; set; }

Property Value

Type Description
Boolean

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

Remarks

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

NOTE

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">
        </DxChartTitle>
    </DxChartLegend>
</DxChart>

Online Demo

Charts - Legend Customization

See Also