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

PolarChartSeriesClickEventArgs.Point Property

Returns the clicked point.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public ChartSeriesPoint Point { get; }

#Property Value

Type Description
ChartSeriesPoint

The clicked series point.

#Remarks

The following code example displays the clicked point’s argument, value, and series name:

Spider Web - Series Click

<DxPolarChart Data=@DataSource 
              UseSpiderWeb="true"
              SeriesClick="OnClick">
    @foreach(var info in SeriesInfos) {
        <DxPolarChartLineSeries Name="@name" ArgumentField="@argumentField" ValueField="@valueField"/>
    }
</DxPolarChart>

@country produces @pointValue million tons of @fruit.

@code {
    string fruit;
    object pointValue, country;
    void OnClick(PolarChartSeriesClickEventArgs args) {
        if (args.Point != null) {
            fruit = args.Series.Name;
            pointValue = args.Point.Value;
            country = args.Point.Argument;
        }
    }

    public class SeriesInfo {
        public string Name { get; set; }
        public Expression<Func<SpiderPoint, object>> ValueField { get; set; }

        public SeriesInfo (string name, Expression<Func<SpiderPoint, object>> valueField) {
            Name = name;
            ValueField = valueField;
        }
    }

    IEnumerable<SeriesInfo> SeriesInfos = new List<SeriesInfo>() {
        new SeriesInfo("Apples", i => i.Apples),
        new SeriesInfo("Grapes", i => i.Grapes),
        new SeriesInfo("Lemons", i => i.Lemons),
        new SeriesInfo("Oranges", i => i.Oranges),
    };

    IEnumerable<SpiderPoint> DataSource = Enumerable.Empty<SpiderPoint>();

    protected override void OnInitialized () {
        DataSource = ChartSpiderDataProvider.GenerateData();
        SelectedSeries = SeriesTypes.FirstOrDefault();
    }
}
See Also