Skip to main content
All docs
V25.1
  • DxPolarChart<T>.SelectionChanged Event

    Fires when point or series selection changes.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.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

    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