From 4efefb9ada923a7a0480b49b292c498ff88ed15a Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期三, 31 七月 2024 14:22:53 +0800
Subject: [PATCH] 优化图表里的标签显示,设置一定的偏移量,确保标签都在图表内

---
 src/main/java/com/ots/project/tool/report/LAQ/chart/LAQAllChart.java |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/ots/project/tool/report/LAQ/chart/LAQAllChart.java b/src/main/java/com/ots/project/tool/report/LAQ/chart/LAQAllChart.java
index 4308b1c..924d655 100644
--- a/src/main/java/com/ots/project/tool/report/LAQ/chart/LAQAllChart.java
+++ b/src/main/java/com/ots/project/tool/report/LAQ/chart/LAQAllChart.java
@@ -380,13 +380,25 @@
             //濡傛灉y杞村皬浜�1锛岃璁剧疆鎴�3锛屽線涓婄Щ鍔ㄤ竴涓�
             if(perfomance<=1.2)
             {
-                perfomance=perfomance+1.2;
+                perfomance=perfomance+1.5;
             }
             //濡傛灉y杞村ぇ浜�97锛岃缃垚97锛屽線涓嬬Щ鍔ㄤ竴鐐癸紝濂界湅
             if(perfomance>=99)
             {
                 perfomance=99.0;
             }
+
+            if(perfomance>33.0&&perfomance<34.0)
+            {
+                perfomance = perfomance+2.0;
+            }
+
+            if(perfomance>66.0&&perfomance<67)
+            {
+                perfomance = perfomance+2.0;
+            }
+
+
 
             if(type==1)
             {
@@ -409,6 +421,11 @@
                 {
                     olas= olas+1;
                 }
+
+                if(olas>66.0&olas<=67.0)
+                {
+                    olas = olas -2.0;
+                }
             }
 
             if(type==3)
@@ -419,6 +436,10 @@
                     olas= olas + 1;
                 }
 
+                if(olas>=32.0&olas<=33.0)
+                {
+                    olas = olas -2.0;
+                }
             }
 
             List<SeriesData> seriesDatas = new ArrayList<>();

--
Gitblit v1.9.1