IChartAxis.TickAlignment

Syntax

TickAlignment: ChartAxisTickAlignment;

Description

The TickAlignment property determines a position of tick marks relative to axes.

Example

Executing the example requires a form, a button named Button1 on the form, the ChartBox and UiChart components and the UiErAnalyzer component named UiErAnalyzer1 that is used as a data source.

Class TESTForm: Form
    Button1: Button;
    UiErAnalyzer1: UiErAnalyzer;
    UiChart1: UiChart;
    ChartBox1: ChartBox;
    
    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Begin
        ChartBox1.Chart.AxisY.MinorTick := True;
        ChartBox1.Chart.AxisY.TickAlignment := 1 As ChartAxisTickAlignment;
    End Sub Button1OnClick;
    
End Class TESTForm;

After clicking the Button1 button tick marks on the Y axis are displayed outside the plot area:

See also:

IChartAxis