Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartContinuousSeriesHoverMode Enum

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum ChartContinuousSeriesHoverMode

#Members

Name Description Image
NearestPoint

The series changes its style along with the point that is the nearest to the cursor.

blazor-chart-continuous-series-hover-mode-nearest-point

SeriesAndAllPoints

The series changes its style along with all the points.

blazor-chart-continuous-series-hover-mode-series-and-all-points

Series

The series changes its style, but the points do not.

blazor-chart-continuous-series-hover-mode-series

None

The series does not react to hovering.

blazor-chart-continuous-series-hover-mode-none

#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">
            @* ... *@
    </DxChartLineSeries>
</DxChart>

@code {
    IEnumerable<SaleInfo> SalesData;

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