Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[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.

Razor
<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