5.2.2 Axis Title

For each axis, you can enter the title you would like to see displayed next to the axis. This title is usually used to explain which data is related to the axis. For example, if your chart contains a bar series showing prices for each month,the horizontal axis might have the title 'Months', and the vertical axis might have the title 'Sales in millions'. Also it is possible to set axis title's rotation angle using setRotationAngle() method, title's offset, horizontal and vertical positions.

Axis title can be positioned under axis:

 
axisX.getTitleSettings().setPosition(TitlePosition.BELOW);
axisY.getTitleSettings().setPosition(TitlePosition.INLINE);

Axis Title Position Demonstration

Figure 5.2.2.1 Axis Title Position Demonstration

Also axis title's horizontal and vertical positions can be altered:

 
axisX.getTitleSettings().setHorizontalAlignment(Alignment.RIGHT);
axisY.getTitleSettings().setVerticalAlignment(Alignment.CENTER);