Chart for WinRT > Chart Types > Pie Charts > Changing the Offset for All Slices |
To change the offset for all Pie slices, use the following code:
C# |
Copy Code
|
---|---|
PieOptions.SetOffset(c1Chart1, 0.1); |
The valid offset range is from 0 to 1.
It is possible to change the offset for a specific slice, but that has to be done manually by changing the position in DataSeries.PlotElementLoaded event.