IChartAxis.TextVisible

Syntax

TextVisible: Boolean;

Description

The TextVisible property determines whether axis labels are visible.

Comments

The TextVisible property is set to True by default, and axis labels are displayed. The property can be applied for all axes.

This property is saved together with the chart. If an object from the previous version is loaded, the following properties are set for it by default: TextAlignment, AutoTextSpacing, TextSpacing and TextVisible.

Example

Executing the example requires a form, the Button1 button located on the form, the ChartBox and UiChart components used as data sources.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    ay: IChartAxis;
Begin
    ay:= UiChart1.Chart.AxisY;    
    ay.TextVisible:= False;
End Sub Button1OnClick;

After clicking the Button1 button the Y axis labels become invisible on the chart.

See also:

IChartAxis