AAChartCore-Kotlin
AAChartCore-Kotlin copied to clipboard
请问如何设置Y轴名字在Y轴上方,而不是Y轴左右两边
我用的demo是这个configureTripleYAxesMixedChart,
val yAxis2 = AAYAxis()
.visible(true)
.gridLineWidth(0f)
.labels(AALabels()
.enabled(true)//设置 y 轴是否显示数字
.format("{value}°mm")
.style(AAStyle()
.color(colorsThemeArr[0])))//yAxis Label font color
.title(AATitle()
.align(AAChartAlignType.Center)
.text("降雨量")
.style(AAStyle()
.color(colorsThemeArr[0])))

我加了.align(AAChartAlignType.Center)这行代码,但是标题貌似跑到屏幕外了,就显示了一点点,不知道我这样设置对不对