[C1Chart] Added new class PieSlice that represents plot element for pie chart. It has Offset property that controls radial offset of slice from the original position. Using this property it's possible to set individual offset for each slice or create animation.
var ds = new DataSeries() { ValuesSource = new double[] { 1, 2, 2, 1, 2, 1, 2 } }; ds.PlotElementLoaded += (s, e) =>
{
var slice = s as PieSlice;
if (slice != null)
{
// add offset for even slices
if ((slice.DataPoint.PointIndex % 2) == 0)
slice.Offset = 15;
}
};
chart.Data.Children.Add(ds);
chart.ChartType = ChartType.Pie;
- [C1Chart] Class Pie is marked as obsolete, please use new PieSilce instead.