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

DxPieChart<T>.SeriesClick Event

Occurs when a user clicks a pie series sector.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public EventCallback<PieChartSeriesClickEventArgs> SeriesClick { get; set; }

#Event Data

The SeriesClick event's data class is PieChartSeriesClickEventArgs. The following properties provide information specific to this event:

Property Description
Point Returns the clicked series point.
Series Returns the pie series to which the clicked pie point belongs.

#Remarks

The following example details how to display information about a pie sector when a user clicks it:

<DxPieChart SeriesClick=@OnSeriesClick>
    <@*...*@>
</DxPieChart>
@if(ClickedPointArgs.Point != null) {
    <div id="point-args">
        <table>
            <tr> <td>Point Value:</td><td> @ClickedPointArgs.Point.Value</td> </tr>
            <tr> <td>Argument:</td><td> @ClickedPointArgs.Point.Argument</td> </tr>
        </table>
    </div>
}
@code {
    PieChartSeriesClickEventArgs ClickedPointArgs { get; set; }
    void OnSeriesClick(PieChartSeriesClickEventArgs seriesArgs) {
        ClickedPointArgs = seriesArgs;
    }
}
See Also