DxChartSeries<T, TArgument, TValue, TAggregate, TModel>.Settings Property

Accepts series settings when you create a series template.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public ChartSeriesSettings<T, TValue, TArgument> Settings { get; set; }

Property Value

Type Description
ChartSeriesSettings<T, TValue, TArgument>

The settings of a series.

Remarks

The SeriesTemplate property allows you to specify a template for a series. The property gets an object of the ChartSeriesSettings<T, TGroupKey, TValue, TArgument> type that contains information about the currently rendered series. This object can be accessed in the template rendering process by the context parameter.

Assign the context to the Settings property to provide the rendered series with the series settings.

<DxChart Data="@ChartsData">
    <DxChartCommonSeries NameField="@((SaleInfo s) => s.Country)" Filter="@(s => s.Region == "North America")" 
                         ArgumentField="@(s => s.Date.DayOfWeek.ToString())" 
                         ValueField="@(s => s.Date.Year)" SeriesType="ChartSeriesType.Bubble">
        <SeriesTemplate>
            <DxChartBubbleSeries Settings="@context" 
                                 SizeField="@(s => s.Amount)" 
                                 Color="@(context.GroupKey == "Canada" ? Color.FromArgb(252, 58, 48) : Color.FromArgb(208, 208, 208))" 
                                 SummaryMethod="Enumerable.Max" />
        </SeriesTemplate>
    </DxChartCommonSeries>
    <DxChartLegend Position="RelativePosition.Outside" HorizontalAlignment="HorizontalAlignment.Right" />
    <DxChartValueAxis>
        <DxChartAxisLabel Format="ChartAxisLabelFormat.FixedPoint"></DxChartAxisLabel>
    </DxChartValueAxis>
</DxChart>

Chart Common Series

Online Demos

See Also