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

DxPieChartSeries<T, TArgument, TValue>.HoverMode Property

Specifies the chart elements to highlight when a pie series is hovered over.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(PieChartSeriesHoverMode.Point)]
[Parameter]
public PieChartSeriesHoverMode HoverMode { get; set; }

#Property Value

Type Default Description
PieChartSeriesHoverMode Point

A PieChartSeriesHoverMode enumeration value.

Available values:

Name Description Image
Point

Changes the appearance of the hovered series point only.

pie-chart-hover-mode-point

None

The appearance of the hovered series point is not changed.

pie-chart-hover-mode-none

#Remarks

The following code specifies hover mode for series elements in a Pie Chart:

razor
@using Chart.Data

<DxPieChart Data="@SalesData">
    @* ... *@
    <DxPieChartSeries ValueField="@((SaleInfo i) => i.Amount)"
                      ArgumentField="@(i => i.City)"
                      SummaryMethod="Enumerable.Sum"
                      HoverMode="PieChartSeriesHoverMode.Point">
    </DxPieChartSeries>
</DxPieChart>

@code {
    IEnumerable<SaleInfo> SalesData;

    protected override async Task OnInitializedAsync() {
        SalesData = (await Sales.GetSalesAsync()).Where(x => x.Country == "United States");
    }
}
See Also