Back to Devexpress

DxChart<T>.MinBubbleSize Property

blazor-devexpress-dot-blazor-dot-dxchart-1-c7698300.md

latest3.2 KB
Original Source

DxChart<T>.MinBubbleSize Property

Specifies the diameter of the smallest bubble in bubble series.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(12)]
[Parameter]
public double MinBubbleSize { get; set; }

Property Value

TypeDefaultDescription
Double12

The bubble diameter in pixels.

|

Remarks

The bubble diameter in DxChartBubbleSeries is specified by the SizeField property. To define the diameter of the smallest bubble, specify the MinBubbleSize property.

The following example changes the diameter of the smallest bubble:

razor
<DxChart @ref="@chart"
         Data="@chartsData"
         Width="100%"
         Height="500px"
         MinBubbleSize="30">
    <DxChartTitle Text="Correlation between Total Population and Population with Age over 60" />
    <DxChartBubbleSeries Name="Europe"
                         T="PopulationCorrelationDataPoint"
                         TArgument="double"
                         TValue="double"
                         TSize="double"
                         ArgumentField="pc => pc.TotalPopulation"
                         ValueField="pc => pc.Older60Population"
                         SizeField="pc => pc.Older60Population / pc.TotalPopulation"
                         Filter='pc => pc.Region == "Europe"' />
    <DxChartBubbleSeries Name="Africa"
                         T="PopulationCorrelationDataPoint"
                         TArgument="double"
                         TValue="double"
                         TSize="double"
                         ArgumentField="pc => pc.TotalPopulation"
                         ValueField="pc => pc.Older60Population"
                         SizeField="pc => pc.Older60Population / pc.TotalPopulation"
                         Filter='pc => pc.Region == "Africa"' />
    @* ... *@
    <DxChartArgumentAxis>
        <DxChartAxisTitle Text="Total population" />
        <DxChartAxisLabel Format='ChartElementFormat.FromLdmlString("#0M")' />
    </DxChartArgumentAxis>
    <DxChartValueAxis EndOnTick="false" SideMarginsEnabled="false">
        <DxChartAxisTitle Text="Population with Age over 60" />
        <DxChartAxisLabel Format='ChartElementFormat.FromLdmlString("#0M")' />
        <DxChartAxisRange StartValue = "-3" EndValue = "50"/>
    </DxChartValueAxis>
</DxChart>

@code {
    IEnumerable<PopulationCorrelationDataPoint> chartsData;

    protected override async Task OnInitializedAsync() {
        chartsData = await PopulationCorrelation.GetData();
    }
}

See Also

DxChart<T> Class

DxChart<T> Members

DevExpress.Blazor Namespace