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

PieChartSeriesHoverMode Enum

Lists values that specify what series elements to highlight when a user hovers a series point in a Pie Chart over.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum PieChartSeriesHoverMode

#Members

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

#Related API Members

The following properties accept/return PieChartSeriesHoverMode values:

#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