DxChartLegend.AllowToggleSeries Property
In This Article
Specifies whether users can toggle series visibility.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
[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 Allow
property does not affect legend items that use text templates.
Razor
<DxChart Data="@SalesData">
@* ... *@
<DxChartLegend AllowToggleSeries="true" Orientation="Orientation.Vertical" HorizontalAlignment="HorizontalAlignment.Right">
<DxChartTitle Text="Legend">
</DxChartTitle>
</DxChartLegend>
</DxChart>
See Also