Skip to main content

BubbleSeries.MinSize Property

Gets or sets the minimum size of bubble markers. This is a bindable property.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts

Declaration

public double MinSize { get; set; }

Property Value

Type Default Description
Double -1

The marker minimum size, in X-axis measurement units.

Example

This example shows how to adjust a bubble chart view so that it draws bubbles in different colors taken from the specified palette, and how to configure the size of bubbles.

<ContentPage>
    <ContentPage.BindingContext>
        <local:MainViewModel/>
    </ContentPage.BindingContext>
    <dxc:ChartView>
        <dxc:ChartView.ChartStyle>
            <dxc:ChartStyle Palette="{Binding Palette}"/>
        </dxc:ChartView.ChartStyle>
        <dxc:ChartView.Series>
            <dxc:BubbleSeries ColorEach="True" MinSize="1" MaxSize="2">
                <!--...-->
            </dxc:BubbleSeries>
        </dxc:ChartView.Series>
    </dxc:ChartView>
</ContentPage>
using Microsoft.Maui.Graphics;
// ...
class MainViewModel {
    // ...
    public Color[] Palette { get; }

    public ViewModel() {
        // ...
        Palette = new Color[] {
            Color.FromHex("#7faedb"),
            Color.FromHex("#abaca8"),
            Color.FromHex("#809ad0"),
            Color.FromHex("#c8e0f2"),
            Color.FromHex("#dddfdc"),
            Color.FromHex("#f29f64"),
            Color.FromHex("#ebcb5a"),
            Color.FromHex("#98bf81"),
            Color.FromHex("#fbdabf"),
            Color.FromHex("#ffeaab")
        };
    }
}

Bubble Series Style

See Also