Browse Source

加上数标

MSI\liwei 3 years ago
parent
commit
ef11ff91b3
1 changed files with 16 additions and 0 deletions
  1. 16 0
      ruoyi-ui/src/views/components/table/homeTable.vue

+ 16 - 0
ruoyi-ui/src/views/components/table/homeTable.vue

@@ -600,6 +600,14 @@ export default {
             data: dataArry,
             itemStyle: {
               normal: {
+                label: {
+                        show: true, //开启显示
+                        position: 'top', //在上方显示
+                        textStyle: { //数值样式
+                            color: 'white',
+                            fontSize: 10
+                        }
+                    },
                 color: new this.$echarts.graphic.LinearGradient(
                   0, 0, 0, 1,
                   [
@@ -700,6 +708,14 @@ export default {
             data: dataArry,
             itemStyle: {
               normal: {
+               label: {
+                        show: true, //开启显示
+                        position: 'top', //在上方显示
+                        textStyle: { //数值样式
+                            color: 'white',
+                            fontSize: 10
+                        }
+                    },
                 color: new this.$echarts.graphic.LinearGradient(
                   0, 0, 0, 1,
                   [