Browse Source

Correct code

An An 4 years ago
parent
commit
d9cc0b880b

+ 4 - 4
app/src/main/java/com/aachartmodel/aainfographics/AAInfographicsLib/AAChartCreator/AASeriesElement.kt

@@ -74,8 +74,8 @@ class AASeriesElement {
     private var reversed: Boolean? = null
 
 
-    fun type(prop: String?): AASeriesElement {
-        type = prop
+    fun type(prop: AAChartType?): AASeriesElement {
+        type = prop?.value
         return this
     }
 
@@ -144,8 +144,8 @@ class AASeriesElement {
         return this
     }
 
-    fun dashStyle(prop: String?): AASeriesElement {
-        dashStyle = prop
+    fun dashStyle(prop: AAChartLineDashStyleType?): AASeriesElement {
+        dashStyle = prop?.value
         return this
     }