Skip to main content

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.1.dll

NuGet Package: DevExpress.Blazor

Declaration

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

<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