Skip to main content
All docs
V24.1

DxPolarChart<T>.SelectionChanged Event

Fires when a user selects or deselects a series or point.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public EventCallback<PolarChartSelectionChangedEventArgs> SelectionChanged { get; set; }

Event Data

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

Property Description
IsPointSelected Returns whether a point is selected.
IsSeriesSelected Returns whether a series is selected.
Point Returns the last selected or deselected point.
Series Returns the clicked series or the series to which the clicked point belongs.

Remarks

Handle the SelectionChanged event to react to series or point selection changes.

The following snippet displays the coordinates of a selected point:

<DxPolarChart Data=@DataSource
              PointSelectionMode="ChartSelectionMode.Multiple" 
              SelectionChanged="OnSelectionChanged">
    <DxPolarChartArgumentAxis Inverted="true" StartAngle="90" TickInterval="30"/>
    <DxPolarChartLineSeries ArgumentField="@((DataPoint i) => i.X)"
                            ValueField="@((DataPoint i) => i.Y)">
    </DxPolarChartLineSeries>
</DxPolarChart>

<p>The (@Argument; @Value) point was selected.</p>

@code {
    IEnumerable<DataPoint> DataSource = Enumerable.Empty<DataPoint>();

    object Argument, Value;

    protected override void OnInitialized () {
        DataSource = ChartContinuousDataProvider.GenerateData();
    }

    void OnSelectionChanged(PolarChartSelectionChangedEventArgs args) {
        Argument = args.Point.Argument;
        Value = args.Point.Value;
    }
}

Coordinates of a selected point

See Also