Kaynağa Gözat

3d柱状图增加颜色,环形图调节间距

liubei@c-top.com.cn 3 yıl önce
ebeveyn
işleme
1f2ad3fc30
1 değiştirilmiş dosya ile 20 ekleme ve 3 silme
  1. 20 3
      src/views/bossDataKanban/index.vue

+ 20 - 3
src/views/bossDataKanban/index.vue

@@ -599,6 +599,8 @@
                 this.getAction(process.env.VUE_APP_BASE_MATERIAL_URL + '/boss/bossDataExhibitionController/getCompanyMeterialConsume', paramsTwo).then(res => {
                     if (res.code == 0) {
                         resultArray = res.result;
+                        // resultArray.push({area:'聚义',cost:2050422.25},{area:'华南',cost:5050422.25})
+                        // console.log(resultArray);
                         if (resultArray.length > 0) {
                             this.emptyShowTwo = true;
                             resultArray.forEach(element => {
@@ -750,7 +752,7 @@
                         itemGap: 20,
                         itemWidth: 15,
                         itemHeight: 10,
-                        padding: [-20, 0, 0, 80],
+                        padding: [-40, 0, 0, 80],
                         bottom: '55%',
                         formatter: function (name) {  //该函数用于设置图例显示后的百分比
                             var data = list
@@ -848,7 +850,12 @@
                 }, {
                     value: payPersonNum[5],
                     itemStyle: {
-                        color: '#40E0D0'
+                        color: 'rgba(0,255,127,1.0)'
+                    }
+                },{
+                    value: payPersonNum[6],
+                    itemStyle: {
+                        color: 'rgba(255,192,203,1.0)'
                     }
                 },
                 ]
@@ -886,6 +893,16 @@
                     itemStyle: {
                         color: 'rgba(182,105,86,.1)'
                     }
+                },{
+                    value: Math.max.apply(null, payPersonNum),
+                    itemStyle: {
+                        color: 'rgba(0,255,127,.1)'
+                    }
+                },{
+                    value: Math.max.apply(null, payPersonNum),
+                    itemStyle: {
+                        color: 'rgba(255,192,203,.1)'
+                    }
                 }
                 ]
                 if (VALUE1.length != VALUE2.length) {
@@ -942,7 +959,7 @@
                 echarts.graphic.registerShape('CubeLeft', CubeLeft)
                 echarts.graphic.registerShape('CubeRight', CubeRight)
                 echarts.graphic.registerShape('CubeTop', CubeTop)
-                const MAX = [300, 300, 300, 300, 300, 300]
+                const MAX = [300, 300, 300, 300, 300, 300,300]
                 const VALUE = payPersonNum
                 let option = {
                     backgroundColor: "transparent",