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

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

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="ChartAxisLabelFormat.FixedPoint"></DxChartAxisLabel>
    </DxChartValueAxis>
</DxChart>

Chart Bubble Series

Online Demo

Charts - Bubble Series

See Also