IChartCircleInfo.HoleSize

Fore Syntax

HoleSize: Double;

Fore.NET 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.

Fore 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.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

The example is a handler of the Click event for the button1 component.

Imports Prognoz.Platform.Interop.Chart;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Chart: IChart;
    CircleInfo: IChartCircleInfo;
Begin
    Chart := chartBoxNet1.CtrlBox.Chart;
    // transform chart into doughnut type
    Chart.Type := ChartType.chtDoughnut;
    CircleInfo := Chart.CircleInfo;
    // central circle radius
    CircleInfo.HoleSize := 0.3;
End Sub;

See also:

IChartCircleInfo