How do you alter the position of an Axis Title?


#1

Can’t find a command to range the Axis Title position left/right or centered? Presume it exists?

Many thanks EH


#2

Hi Ehasted,

Change the textAlignment property on the SChartAxisTitleStyle that is on your SChartAxisStyle. Here’s an example:

myChart.yAxis.style.titleStyle.textAlignment =  UITextAlignmentCenter;

Thanks,
Jan


#3

Hm, seems to prefer textAlign rather than textAlignment but then get an UITextAlignmmentCenter is depricated first depricated in iOS 6.0


#4

xAxis.style.titleStyle.position = SChartTitlePositionCenter;