Chart for WinRT > Chart Types > Pie Charts > Setting the Inner Radius |
Even without setting the ChartType to PieDoughnut, you can control the inner radius (hole size) of the pie chart.
The valid inner radius range is from 0 to 1. 1 corresponds with the pie chart's outer radius. For an inner radius that is half the size of the outer radius, set the PieOptions.InnerRadius property as in the following code example:
C# |
Copy Code
|
---|---|
PieOptions.SetInnerRadius(chart, 0.5); |
When you run your application, it should resemble the following image: