Skip to main content

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

[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:

@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