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

DxChartBubbleSeries<T, TArgument, TValue, TSize>.SizeField Property

Specifies the data source field that stores sizes for a bubble series.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public Expression<Func<T, TSize>> SizeField { get; set; }

#Property Value

Type Description
Expression<Func<T, TSize>>

The name of the field.

#Remarks

Use the SizeField option to specify a data source field that contains size values for a bubble series.

Razor
<DxChart Data="@ChartsData">
    <DxChartBubbleSeries Name="United States" Filter="@((SaleInfo s) => s.Country == "United States")"
                         ArgumentField="@(s => s.Date.DayOfWeek.ToString())"
                         ValueField="@(s => s.Date.Year)"
                         SizeField="@(s => s.Amount)"
                         Color="@(Color.FromArgb(208, 208, 208))"
                         SummaryMethod="Enumerable.Max" />
    <DxChartBubbleSeries Name="Canada" Filter="@((SaleInfo s) => s.Country == "Canada")"
                         ArgumentField="@(s => s.Date.DayOfWeek.ToString())"
                         ValueField="@(s => s.Date.Year)"
                         SizeField="@(s => s.Amount)"
                         Color="@(Color.FromArgb(252, 58, 48))"
                         SummaryMethod="Enumerable.Max" />
    <DxChartLegend Position="RelativePosition.Outside" HorizontalAlignment="HorizontalAlignment.Right" />
    <DxChartValueAxis>
        <DxChartAxisLabel Format="ChartElementFormat.FixedPoint()"></DxChartAxisLabel>
    </DxChartValueAxis>
</DxChart>

Chart Bubble Series

#Online Demo

Charts - Bubble Series

See Also