Skip to main content
All docs
V25.1
  • DxPieChart<T>.SeriesClick Event

    Occurs when a user clicks a pie series sector.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [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