Skip to main content
All docs
V25.1
  • PolarChartSeriesClickEventArgs.Series Property

    Returns the clicked series.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    public IPolarChartSeries Series { get; }

    Property Value

    Type Description
    IPolarChartSeries

    The clicked series.

    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