Skip to main content
All docs
V24.2

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

DxPolarChart<T>.SelectionChanged Event

Fires when point or series selection changes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[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

Use the SeriesSelectionMode or PointSelectionMode property to enable series or point selection in the <DxPolarChart> component.

The SelectionChanged event fires when a user selects/deselects a series/point or you call the following methods:

#Example

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