DxChartXYSeries<T, TArgument, TValue, TAggregate>.Settings Property
Accepts series settings when you create a series template.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
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 specify settings for the rendered series.
<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="ChartElementFormat.FixedPoint()"></DxChartAxisLabel>
</DxChartValueAxis>
</DxChart>
Online Demos
See Also