Browse Source

Update AASeriesElement.kt

An An 3 years ago
parent
commit
b602005edb

+ 40 - 1
charts/src/main/java/com/github/aachartmodel/aainfographics/aachartcreator/AASeriesElement.kt

@@ -45,7 +45,16 @@ class AASeriesElement {
     private var data: Array<Any>? = null
     private var lineWidth //折线图、曲线图、直方折线图、折线填充图、曲线填充图、直方折线填充图的线条宽度
             : Float? = null
-    private var borderWidth: Float? = null
+    private var borderColor //The border color, It is only valid for column, bar, pie, columnrange, pyramid and funnel chart types
+            : String? = null
+    private var borderWidth //The border width, It is only valid for column, bar, pie, columnrange, pyramid and funnel chart types
+            : Float? = null
+    private var borderRadius //The corner radius of the border surrounding each column or bar.
+            : Float? = null
+    private var borderRadiusTopLeft: Any? = null
+    private var borderRadiusTopRight: Any? = null
+    private var borderRadiusBottomLeft: Any? = null
+    private var borderRadiusBottomRight: Any? = null
     private var color: Any? = null
     private var fillColor: Any? = null
     private var fillOpacity //折线填充图、曲线填充图、直方折线填充图等填充图类型的填充颜色透明度
@@ -99,11 +108,41 @@ class AASeriesElement {
         return this
     }
 
+    fun borderColor(prop: String?): AASeriesElement {
+        borderColor = prop
+        return this
+    }
+
     fun borderWidth(prop: Float?): AASeriesElement {
         borderWidth = prop
         return this
     }
 
+    fun borderRadius(prop: Float?): AASeriesElement {
+        borderRadius = prop
+        return this
+    }
+
+    fun borderRadiusTopLeft(prop: Any?): AASeriesElement {
+        borderRadiusTopLeft = prop
+        return this
+    }
+
+    fun borderRadiusTopRight(prop: Any?): AASeriesElement {
+        borderRadiusTopRight = prop
+        return this
+    }
+
+    fun borderRadiusBottomLeft(prop: Any?): AASeriesElement {
+        borderRadiusBottomLeft = prop
+        return this
+    }
+
+    fun borderRadiusBottomRight(prop: Any?): AASeriesElement {
+        borderRadiusBottomRight = prop
+        return this
+    }
+
     fun color(prop: Any?): AASeriesElement {
         color = prop
         return this