|
@@ -8,6 +8,7 @@
|
|
|
*/
|
|
|
package com.github.aachartmodel.aainfographics.aaoptionsmodel
|
|
|
|
|
|
+import com.github.aachartmodel.aainfographics.aachartcreator.AAChartLineDashStyleType
|
|
|
import com.github.aachartmodel.aainfographics.aachartcreator.AAChartType
|
|
|
|
|
|
class AAPlotOptions {
|
|
@@ -21,6 +22,7 @@ class AAPlotOptions {
|
|
|
var columnrange: Any? = null
|
|
|
var arearange: Any? = null
|
|
|
var series: AASeries? = null
|
|
|
+ var scatter: AAScatter? = null
|
|
|
|
|
|
fun column(prop: AAColumn): AAPlotOptions {
|
|
|
column = prop
|
|
@@ -72,6 +74,11 @@ class AAPlotOptions {
|
|
|
return this
|
|
|
}
|
|
|
|
|
|
+ fun scatter(prop: AAScatter): AAPlotOptions {
|
|
|
+ scatter = prop
|
|
|
+ return this
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
class AAColumn {
|
|
@@ -386,4 +393,49 @@ class AAArearange {
|
|
|
}
|
|
|
|
|
|
|
|
|
+class AAScatter {
|
|
|
+ var lineWidth: Number? = null
|
|
|
+ var lineColor: String? = null
|
|
|
+ var dashStyle: String? = null
|
|
|
+ var enableMouseTracking: Any? = null
|
|
|
+ var linkedTo: String? = null
|
|
|
+ var states: AAStates? = null
|
|
|
+ var marker: AAMarker? = null
|
|
|
+ fun lineWidth(prop: Number?): AAScatter {
|
|
|
+ lineWidth = prop
|
|
|
+ return this
|
|
|
+ }
|
|
|
+
|
|
|
+ fun lineColor(prop: String?): AAScatter {
|
|
|
+ lineColor = prop
|
|
|
+ return this
|
|
|
+ }
|
|
|
+
|
|
|
+ fun dashStyle(prop: AAChartLineDashStyleType?): AAScatter {
|
|
|
+ dashStyle = prop?.value
|
|
|
+ return this
|
|
|
+ }
|
|
|
+
|
|
|
+ fun enableMouseTracking(prop: Any?): AAScatter {
|
|
|
+ enableMouseTracking = prop
|
|
|
+ return this
|
|
|
+ }
|
|
|
+
|
|
|
+ fun linkedTo(prop: String?): AAScatter {
|
|
|
+ linkedTo = prop
|
|
|
+ return this
|
|
|
+ }
|
|
|
+
|
|
|
+ fun states(prop: AAStates?): AAScatter {
|
|
|
+ states = prop
|
|
|
+ return this
|
|
|
+ }
|
|
|
+
|
|
|
+ fun marker(prop: AAMarker?): AAScatter {
|
|
|
+ marker = prop
|
|
|
+ return this
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
|