IChartCircleInfo.HoleSize

Syntax

HoleSize: Double;

Description

The HoleSize property determines a radius of the central circle (in parts) from the maximum chart radius.

Comments

The property use is given if IChart.Type = ChartType.Doughnut.

Default value - 0.5. Minimum available radius value - 0.1, maximum value - 0.9.

Example

Executing the example requires a form, the Button component with the Button1 identifier on the form, the ChartBox component with the ChartBox1 identifier and the UiErAnalyzer component with the UiErAnalyzer1 identifier that is a data source for the ChartBox1 component. Specify the express report saved on the chart sheet as a data source for the UiErAnalyzer1 component.

The example is a handler of the OnClick event for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Chart: IChart;
    CircleInfo: IChartCircleInfo;
Begin
    Chart := ChartBox1.Chart;
    // transform chart into doughnut type
    Chart.Type := ChartType.Doughnut;
    CircleInfo := Chart.CircleInfo;
    // central circle radius
    CircleInfo.HoleSize := 0.3;
End Sub Button1OnClick;

After executing the example the chart is transformed into doughnut type with the specified radius of central circle.

See also:

IChartCircleInfo