Skip to main content

BubbleSeries.MinSize Property

Gets or sets the minimum size of bubble markers.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

public double MinSize { get; set; }

Property Value

Type Description
Double

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 Xamarin.Forms;
// ...
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