From 505effa88b17ce8c3c7ac5403b76d9e5d0cfc2a5 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期一, 28 十月 2024 11:58:31 +0800
Subject: [PATCH] 谷歌版本问题修复

---
 HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EchartsOption_Histogram.cs |   84 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 83 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EchartsOption_Histogram.cs b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EchartsOption_Histogram.cs
index 3bfd3af..e64d59a 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EchartsOption_Histogram.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EchartsOption_Histogram.cs
@@ -72,8 +72,90 @@
             return YvalueText;
         }
 
+#if __ANDROID__
+        public string optionString = @"{
+                              tooltip: {
+                                trigger: 'axis',
+                                axisPointer: {
+                                  crossStyle: {
+                                    color: '#999'
+                                  }
+                                }
+                              },
+                              grid: {
+                                    top: '10%',
+                                    left: '15%',
+                                    right: '15%',
+                                    bottom: '10%',
+                                    },
+                              xAxis: {
+                                data: [{xData}],
+                                axisTick: {
+                                  show: false
+                                },
+                                axisLine: {
+                                  show: false
+                                },
+                                name:'{xName}',
+                                nameGap:5,
+                                nameTextStyle:{
+                                  color:'#7C8590',
+                                  fontSize:10
+                                },
+                                axisLabel: {
+                                  color: '#7C8590',
+                                  fontSize:10
+                                }
+                              },
+                              yAxis: {
+                                name:'{yName}',
+                                nameGap:12,
+                                nameTextStyle:{
+                                  color:'#030D1C',
+                                  fontSize:10
+                                },
+                                axisLine: {
+                                  show: false
+                                },
+                                axisTick: {
+                                  show: false
+                                },
+                                axisLabel: {
+                                  color: '#7C8590',
+                                  fontSize:10
+                                }
+                              },
+                              dataZoom: [
+                                {
+                                  type: 'inside'
+                                }
+                              ],
+                              series: [
+                                {
+                                  type: 'bar',
+                                  showBackground: false,
+                                  itemStyle: {
+                                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
+                                      { offset: 0, color: '#6AB7F9' },
+                                      { offset: 0.5, color: '#5AA6FF' },
+                                      { offset: 1, color: '#6B97F9' }
+                                    ])
+                                  },
+                                  data: [{yData}]
+                                }
+                              ]
+                            }";
+#else
 
         public string optionString = @"{
+                              tooltip: {
+                                trigger: 'axis',
+                                axisPointer: {
+                                  crossStyle: {
+                                    color: '#999'
+                                  }
+                                }
+                              },
                               grid: {
                                     top: '10%',
                                     left: '10%',
@@ -136,7 +218,7 @@
                                 }
                               ]
                             }";
-
+#endif
 
     }
 

--
Gitblit v1.8.0