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

DxPolarChartBaseSeries<T, TArgument, TValue>.Data Property

Specifies the data source for the series.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public IEnumerable<T> Data { get; set; }

#Property Value

Type Description
IEnumerable<T>

The data source.

#Remarks

Use the Data property to specify the data source for a particular series if this source is different from data assigned to the Polar Chart component:

Razor
@inject IChartDiscreteDataProvider ChartDiscreteDataProvider

<DxPolarChart Data="@DataSource">
    <DxPolarChartLineSeries Data="@forecasts"
                            ArgumentField="@((WeatherForecast i) => i.Date)"
                            ValueField="@((WeatherForecast i) => i.TemperatureC)">
    </DxPolarChartLineSeries>
    <DxPolarChartAreaSeries Name="Night"
                            Color="Color.MidnightBlue"
                            ArgumentField="@((DiscretePoint i) => i.Arg)"
                            ValueField="@((DiscretePoint i) => i.Night)">
    </DxPolarChartAreaSeries>
</DxPolarChart>

@code {
    IEnumerable<DiscretePoint> DataSource = Enumerable.Empty<DiscretePoint>();
    WeatherForecast[] forecasts;

    public class WeatherForecast {
        public DateTime Date { get; set; }
        public int? TemperatureC { get; set; }
    }
    public class DiscretePoint {
        public string Arg { get; set; }
        public int Day { get; set; }
        public int Night { get; set; }
    }

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