SeriesAsRings: Boolean;
The SeriesAsRings property determines whether series are displayed in the chart rings.
Available values:
True. Chart series are displayed in rings.
False. Chart series are displayed in sectors.
The property is not relevant for the doughnut chart (IChart.Type = ChartType.HoleSize).
The following figure shows examples of displaying a chart with series in rings (left) and sectors (right):
To execute the example, place a button, the ChartBox and UiChart components on the form. Add event handlers, which are used in the example.
Add links to the Chart and MathFin system assemblies.
Sub UiChart1OnGetDataValue(Sender: Object; Args: IUiChartGetDataValueEventArgs);
Begin
Args.Result := True;
Args.Value := Math.Rand;
ChartBox1.Source := UiChart1 As IChartSource;
UiChart1.Type := ChartType.Circles;
End Sub UiChart1OnGetDataValue;
…
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
UiChart1.Chart.CircleInfo.SeriesAsRings := True;
End Sub Button1OnClick;
On executing the example a pie chart with series in sectors is displayed. After clicking the button series are displayed in rings.
See also: