Skip to main content

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

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

C#
[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.

Razor
<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>

Chart Common Series

#Online Demos

See Also