textAlign property

String? textAlign
getter/setter pair

The text alignment for the label. While align determines where the texts anchor point is placed within the plot band, textAlign determines how the text is aligned against its anchor point. Possible values are "left", "center" and "right". Defaults to the same as the align option.

API Docs: https://api.highcharts.com/highcharts/xAxis.plotLines.label.textAlign

Implementation

String? textAlign;