Browse Source

bug fixed

duwendi 1 year ago
parent
commit
bb8c0cd391
2 changed files with 11 additions and 2 deletions
  1. 9 0
      src/components/barChart.vue
  2. 2 2
      static/mung-local-config.js

+ 9 - 0
src/components/barChart.vue

@@ -147,6 +147,15 @@ export default {
147 147
         stack: this.stack,
148 148
         barWidth: this.barWidth,
149 149
         encode: encode,
150
+        label: { //柱体上显示数值
151
+          show: true,//开启显示
152
+          position: 'top',//在上方显示
153
+          textStyle: {//数值样式
154
+            fontSize: '7px',
155
+            color: '#fff'
156
+          },
157
+          // formatter: '{c}',
158
+        },
150 159
         itemStyle: {
151 160
           barBorderRadius: this.legendIcon === 'circle' ? [5, 5, 0, 0] : 0,
152 161
           color: isNaN(this.colorIdx) ? this.colorArr[idx] : colors[this.colorIdx]

+ 2 - 2
static/mung-local-config.js

@@ -1,7 +1,7 @@
1 1
 window.mungConfig = {
2 2
   dev: {
3
-    BASE_API: "http://localhost:16399/luohe2_ee/api"
4
-    // BASE_API: "https://park.lhzhtc.cn/luohe2_ee/api"
3
+    // BASE_API: "http://localhost:16399/luohe2_ee/api"
4
+    BASE_API: "https://park.lhzhtc.cn/luohe2_ee/api"
5 5
   },
6 6
   build: {
7 7
     BASE_API: "https://park.lhzhtc.cn/luohe2_ee/api"