Skip to main content
A newer version of this page is available. .

PieSeriesView.DonutGroupInnerIndent Property

Gets or sets the inner indent for the pie series when it is shown in a group of nested donuts, in pixels.

Namespace: DevExpress.WinUI.Charts

Assembly: DevExpress.WinUI.Charts.v22.1.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(5, Handler = "InvalidateLayout")]
public double DonutGroupInnerIndent { get; set; }

Property Value

Type Description
Double

The distance between donut rings in pixels.

Remarks

In the following image, the DonutGroupInnerIndent property value is set to 40 pixels for the outer donut series:

The image shows an indent between two donut rings.

Multiple donuts are displayed nested if they have the same PieSeriesView.DonutGroup property value. Specify the PieSeriesView.DonutGroupInnerIndent property to define the gap between two nested donuts. To control the thickness of donuts, specify the PieSeriesView.DonutGroupWeight property.

Nested donuts

The following markup adds two donut series, and displays the second series as a nested donut:

<Charts:PieChart x:Name="chart">
    <Charts:PieChart.Series>
        <Charts:PieSeries x:Name="series1">
            <Charts:PieSeries.View>
                <Charts:PieSeriesView ShowDonut="True"
                                      DonutHoleRadiusPercent="70"
                                      DonutGroup="0"
                                      DonutGroupWeight="1"
                                      DonutGroupInnerIndent="10"
                                      LegendPointPattern="{}{A}"/>
            </Charts:PieSeries.View>
            <Charts:PieSeries.Data>
                <Charts:DataSource .../>
            </Charts:PieSeries.Data>
        </Charts:PieSeries>
        <Charts:PieSeries x:Name="series2" ShowInLegend="False">
            <Charts:PieSeries.View>
                <Charts:PieSeriesView ShowDonut="True"
                                      DonutHoleRadiusPercent="70"
                                      DonutGroup="0"
                                      DonutGroupWeight="2"/>
            </Charts:PieSeries.View>
            <Charts:PieSeries.Data>
                <Charts:DataSource .../>
            </Charts:PieSeries.Data>
        </Charts:PieSeries>
    </Charts:PieChart.Series>
</Charts:PieChart>
See Also