DxChartBubbleSeries<T, TArgument, TValue, TSize> Class

Defines a bubble series.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

public class DxChartBubbleSeries<T, TArgument, TValue, TSize> :
    DxChartSeries<T, TArgument, TValue, TSize, ChartBubbleSeriesModel<T, TArgument, TValue, TSize>>

Type Parameters

Name Description
T

The type of data.

TArgument

The type of series arguments.

TValue

The type of series values.

TSize

The type of series size values.

Remarks

The bubble series displays data as individual bubbles of different sizes.

Use the chart’s Data property to specify an IEnumerable<T> data source, and the ArgumentField and ValueField properties to specify data source fields that contain arguments and values. To specify a data source field that supplies bubble sizes, use the DxChartBubbleSeries.SizeField property. For a sample data source, refer to our GitHub repository.

@using System.Drawing

<DxChart Data="@SalesData">
    <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" />
</DxChart>

@code {
    IEnumerable<SaleInfo> SalesData;

    protected override async Task OnInitializedAsync() {
        SalesData = await Sales.GetSalesAsync();
    }
}

Chart Bubble Series

Run Demo: Charts - Bubble Series

Inheritance

Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.Internal.ChartSeriesModelBase>
DxComplexSettingsComponent<DxChartSeries, DevExpress.Blazor.Internal.ChartSeriesModelBase>
DxChartSeries
DxChartSeries<T, TArgument, TValue, TSize, DevExpress.Blazor.Internal.ChartBubbleSeriesModel<T, TArgument, TValue, TSize>>
DxChartBubbleSeries<T, TArgument, TValue, TSize>
See Also