Jelajahi Sumber

首页 - RC审计CODE完成率横坐标单位样式修改

wangggziwen 8 bulan lalu
induk
melakukan
0dafb58cb2
1 mengubah file dengan 19 tambahan dan 1 penghapusan
  1. 19 1
      ruoyi-ui/src/views/home2.vue

+ 19 - 1
ruoyi-ui/src/views/home2.vue

@@ -118,11 +118,29 @@ export default {
           },
           xAxis: {
             type: 'value',
-            name: '%',
+            name: '',
+            axisLabel: {
+              // 使用formatter格式化刻度标签
+              formatter: function (value) {
+                return value + '%';  // 返回格式化后的字符串
+              }
+            }
           },
           series: [
             {
               itemStyle: {borderRadius: [20, 20, 20, 20]},
+              // data: [
+              //   {value: 70, itemStyle: {color: '#91CC75'}},
+              //   {value: 70, itemStyle: {color: '#91CC75'}},
+              //   {value: 70, itemStyle: {color: '#91CC75'}},
+              //   {value: 70, itemStyle: {color: '#91CC75'}},
+              //   {value: 70, itemStyle: {color: '#91CC75'}},
+              //   {value: 70, itemStyle: {color: '#91CC75'}},
+              //   {value: 50, itemStyle: {color: '#91CC75'}},
+              //   {value: 70, itemStyle: {color: '#91CC75'}},
+              //   {value: 90, itemStyle: {color: '#91CC75'}},
+              //   {value: 80, itemStyle: {color: '#91CC75'}},
+              // ],
               data: [
                 {value: data.code0 * 100, itemStyle: {color: '#91CC75'}},
                 {value: data.code1 * 100, itemStyle: {color: '#91CC75'}},