Pardon me if I’m missing something obvious, but I am trying to center align a multiline tick label. I want both lines of the label to be centered. By default they seem to be left-justified. See attached image of current behavior.
xAxis = DateAxis(this) xAxis.textFormatting = "h:mma\nMMM d"
Please try to set AxisTickLabelStyle with Layout.Alignment.ALIGN_CENTER:
xAxis.setAxisTickLabelStyle(new AxisTickLabelStyle(Gravity.CENTER, Layout.Alignment.ALIGN_CENTER, 5, 0, 5, 0));
Hope this will help you!
Please login first to submit.