DxChartLegend.HoverMode Property

Specifies what series elements to highlight when a corresponding item in the legend is hovered over.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
[DefaultValue(ChartLegendHoverMode.IncludePoints)]
public ChartLegendHoverMode HoverMode { get; set; }

Property Value

Type Default Description
ChartLegendHoverMode

IncludePoints

A hover mode.

Available values:

Name Description
IncludePoints

A series is highlighted with points.
Include points

ExcludePoints

A series is highlighted without points.
Exclude points

None

A series is not highlighted.
None

Remarks

Legend items represent series. When a legend item is hovered over, the corresponding series is highlighted.

NOTE

The IncludePoints and ExcludePoints values are in effect for line series (series with points) only.

Charts - Include points hover mode

To prevent this behavior, set the hoverMode property to None.

<DxChart Data="@SalesData">
    ...
    <DxChartLegend HoverMode="ChartLegendHoverMode.None">
        <DxChartTitle Text="Legend">
        </DxChartTitle>
    </DxChartLegend>
</DxChart>

Online Demo

Charts - Legend Customization

See Also