I'm using a devexpress pie chart. There are 2 slices, with values 8 and 12 (out of a total of 20).
when I use the code below, the values shown on slices are 0/4
and 0/6
, while I need the values to be 40%
and 60%
.
((PiePointOptions)series.LegendPointOptions).PointView = PointView.Values;
((PiePointOptions)series.LegendPointOptions).PercentOptions.ValueAsPercent = false;
Setting ValueAsPercent = true
only makes things worse by changing the values to 0
and 1
!!! And showing the same proportions (0/4
and 0/6
) on the slices.
How do I show percentage of each slice??