From 458f6714f335938fce80690c037ffca0ccfaa50c Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 03 八月 2022 16:31:52 +0800
Subject: [PATCH] 1.综合看板渲染数据,完成一个版本

---
 src/utils/myEcharts.js |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/utils/myEcharts.js b/src/utils/myEcharts.js
index 7cb86ad..af575cb 100644
--- a/src/utils/myEcharts.js
+++ b/src/utils/myEcharts.js
@@ -355,19 +355,21 @@
   // const data = [70, 60, 50, 40, 30]
   // const titlename = ['澶栬鍒掍激', '琛ㄩ潰娌规薄', '灏哄', '棰滆壊', '澶у皬']
   const data = val.map(i => i.cont)
-  const titlename = val.map(i => i.checkitem_name)
+  const titlename = val.map(i => i.name)
 
   const valdata = [683, 500, 400, 300, 200]
   const myColor = ['#FF0000', '#FF5511', '#FF8800', '#FFBB00', '#FFFF00']
   const option = {
     backgroundColor: 'transparent',
     title: {
-      text: 'Top5涓嶈壇',
-      x: 'center',
+      show: false,
+      text: '涓�鍛ㄥ唴Top5涓嶈壇锛�',
+      x: '2%',
       y: '4%',
       textStyle: {
-        color: '#fff',
-        fontSize: '22'
+        color: '#d8d7d9',
+        fontSize: '18'
+        // fontWeight: 'lighter'
       },
       subtextStyle: {
         color: '#90979c',
@@ -400,7 +402,7 @@
           show: false
         },
         axisLabel: {
-          color: '#fff',
+          color: '#d8d7d9',
           fontSize: 14,
           formatter: function(value, index) {
             return [
@@ -410,7 +412,7 @@
           rich: {
             lg: {
               // backgroundColor: '#339911',
-              color: '#fff',
+              color: '#d8d7d9',
               borderRadius: 15,
               // padding: 5,
               align: 'center',

--
Gitblit v1.9.3