Skip to main content

DxPieChart<T>.MinDiameter Property

Specifies the Pie Chart’s minimum diameter to limit the space that labels with Outside position occupy.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(0.5)]
[Parameter]
public double MinDiameter { get; set; }

Property Value

Type Default Description
Double 0.5

The minimum ratio between the Pie Chart’s diameter and the smaller side of the chart.

Remarks

The MinDiameter property accepts a number that defines the ratio of the Pie’s diameter to the chart area’s width or height, whichever is less.

We recommend that you specify the MinDiameter property when the label’s Position property is Outside to allocate space available for labels and series. The Pie Chart ignores the MinDiameter property if you also specify the Diameter property.

<DxPieChart Data="@SalesData"
            MinDiameter="0.9">
    <DxPieChartSeries T="SaleInfo"
                      TArgument="string"
                      TValue="double"
                      ValueField="si => si.Amount"
                      ArgumentField="si => si.Region"
                      SummaryMethod="Enumerable.Sum">
        <DxChartSeriesLabel Visible="true"
                            Position="RelativePosition.Outside"
                            Format="ChartElementFormat.Thousands(1)">
            <DxChartSeriesLabelConnector Visible="true" />
        </DxChartSeriesLabel>
    </DxPieChartSeries>
    <DxChartLegend Visible="false" />
</DxPieChart>

Label position in pie

See Also