瀏覽代碼

加上数标

MSI\liwei 3 年之前
父節點
當前提交
ef11ff91b3
共有 1 個文件被更改,包括 16 次插入0 次删除
  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,
             data: dataArry,
             itemStyle: {
             itemStyle: {
               normal: {
               normal: {
+                label: {
+                        show: true, //开启显示
+                        position: 'top', //在上方显示
+                        textStyle: { //数值样式
+                            color: 'white',
+                            fontSize: 10
+                        }
+                    },
                 color: new this.$echarts.graphic.LinearGradient(
                 color: new this.$echarts.graphic.LinearGradient(
                   0, 0, 0, 1,
                   0, 0, 0, 1,
                   [
                   [
@@ -700,6 +708,14 @@ export default {
             data: dataArry,
             data: dataArry,
             itemStyle: {
             itemStyle: {
               normal: {
               normal: {
+               label: {
+                        show: true, //开启显示
+                        position: 'top', //在上方显示
+                        textStyle: { //数值样式
+                            color: 'white',
+                            fontSize: 10
+                        }
+                    },
                 color: new this.$echarts.graphic.LinearGradient(
                 color: new this.$echarts.graphic.LinearGradient(
                   0, 0, 0, 1,
                   0, 0, 0, 1,
                   [
                   [