AAChartCore-Kotlin icon indicating copy to clipboard operation
AAChartCore-Kotlin copied to clipboard

请问如何设置Y轴名字在Y轴上方,而不是Y轴左右两边

Open clj12081103 opened this issue 5 years ago • 0 comments

我用的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])))

1578041777541

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

clj12081103 avatar Jan 03 '20 08:01 clj12081103