Răsfoiți Sursa

Merge pull request #167 from dudukee/master

Rename AAAxis property
An An 2 ani în urmă
părinte
comite
0cba9c95e5

+ 1 - 1
charts/src/main/java/com/github/aachartmodel/aainfographics/aaoptionsmodel/AAAxis.kt

@@ -43,7 +43,7 @@ enum class AAChartAxisType(val value: String) {
     var gridLineColor: String? = null //坐标轴网格线颜色
     var gridLineDashStyle: String? = null //坐标轴网格线样式
     var gridLineInterpolation: String? = null
-    var off: Number? = null //坐标轴垂直偏移
+    var offset: Number? = null //坐标轴垂直偏移
     var labels: AALabels? = null //用于设置坐标轴文字相关的
     var visible: Boolean? = null //用于设置坐标轴以及坐标轴文字是否显示
     var startOnTick: Boolean? = null //Whether to force the axis to start on a tick. Use this option with the minPadding option to control the axis start. 默认是:false.

+ 2 - 2
charts/src/main/java/com/github/aachartmodel/aainfographics/aaoptionsmodel/AAXAxis.kt

@@ -100,8 +100,8 @@ class AAXAxis: AAAxis() {
         return this
     }
 
-    fun off(prop: Number?): AAXAxis {
-        off = prop
+    fun offset(prop: Number?): AAXAxis {
+        offset = prop
         return this
     }
 

+ 2 - 2
charts/src/main/java/com/github/aachartmodel/aainfographics/aaoptionsmodel/AAYAxis.kt

@@ -106,8 +106,8 @@ class AAYAxis: AAAxis() {
         return this
     }
 
-    fun off(prop: Number?): AAYAxis {
-        off = prop
+    fun offset(prop: Number?): AAYAxis {
+        offset = prop
         return this
     }