Back to Devexpress

ChartSeriesPointHoverMode Enum

blazor-devexpress-dot-blazor-3f4f99db.md

latest3.3 KB
Original Source

ChartSeriesPointHoverMode Enum

Lists values that specify which series elements to highlight when a user hovers over a series point.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public enum ChartSeriesPointHoverMode

Members

NameDescriptionImage
Point

Only the point that a user hovers over changes its style.

|

| | AllPoints |

All points in the series change their style.

|

| | AllPointsForArgument |

The point that a user hovers over and all other points with the same argument change their style.

|

| | None |

The point does not change its style when a user hovers over it.

|

|

The following properties accept/return ChartSeriesPointHoverMode values:

Remarks

The following code specifies hover mode for series and series points:

razor
@using Chart.Data

<DxChart Data="@SalesData">
    @* ... *@
    <DxChartLineSeries Name="Total Sales"
                       ArgumentField="@((SaleInfo s) => s.City)"
                       ValueField="@((SaleInfo s) => s.Amount)"
                       SummaryMethod="Enumerable.Sum"
                       HoverMode="ChartContinuousSeriesHoverMode.NearestPoint">
            <DxChartSeriesPoint Visible="true"
                                HoverMode="ChartSeriesPointHoverMode.Point" />
    </DxChartLineSeries>
</DxChart>

@code {
    IEnumerable<SaleInfo> SalesData;

    protected override async Task OnInitializedAsync() {
        SalesData = await Sales.GetSalesAsync();
    }
}

Note

If the HoverMode property is set to None, the point’s behavior depends on the series-level setting (the DxChartLineSeries.HoverMode property for line series).

See Also

DevExpress.Blazor Namespace