Sfoglia il codice sorgente

Do not show cross hairs in default

An An 4 anni fa
parent
commit
f90bcf4125

+ 0 - 1
charts/src/main/java/com/github/aachartmodel/aainfographics/aachartcreator/AAOptions.kt

@@ -162,7 +162,6 @@ object AAOptionsConstructor {
         val aaTooltip = AATooltip()
             .enabled(aaChartModel.tooltipEnabled) //启用浮动提示框
             .shared(true) //多组数据共享一个浮动提示框
-            .crosshairs(true) //启用准星线
             .valueSuffix(aaChartModel.tooltipValueSuffix) //浮动提示框的单位名称后缀
 
         val aaPlotOptions = AAPlotOptions()

+ 0 - 7
charts/src/main/java/com/github/aachartmodel/aainfographics/aaoptionsmodel/AATooltip.kt

@@ -52,7 +52,6 @@ class AATooltip {
     var footerFormat: String? = null
     var valueDecimals: Int? = null
     var shared: Boolean? = null
-    var crosshairs: Boolean? = null
     var valueSuffix: String? = null
 
     fun backgroundColor(prop: String): AATooltip {
@@ -122,11 +121,6 @@ class AATooltip {
         return this
     }
 
-    fun crosshairs(prop: Boolean?): AATooltip {
-        crosshairs = prop
-        return this
-    }
-
     fun valueSuffix(prop: String?): AATooltip {
         valueSuffix = prop
         return this
@@ -135,7 +129,6 @@ class AATooltip {
     init {
         shared = true
         enabled = true
-        crosshairs = true
     }
 
 }