DxChartLegend.AllowToggleSeries Property
Specifies whether users can toggle series visibility.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public bool AllowToggleSeries { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
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>
See Also