Hello again,
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"
Thank you.
- C Bolton asked 3 years ago
- You must login to post comments
Hi there,
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!
Best regards,
Yura
- Yura Khariton answered 3 years ago
-
Thank you. That worked perfectly.
-
But how it is possible? according documentations https://www.scichart.com/documentation/android/current/SciChart.Charting~com.scichart.charting.visuals.axes.AxisTickLabelStyle_members.html AxisTickLabelStyle get five int arguments: bottomMargin, gravity, leftMargin, rightMargin, topMargin
-
Please try to update to the latest version of SciChart from Maven repository. This constructor was added recently and I think it’s available only via Maven repository.
- You must login to post comments
Please login first to submit.