Przeglądaj źródła

fix:柱状图添加数据标签的默认偏移量

liu.shiyi 1 rok temu
rodzic
commit
0c1b993618

+ 1 - 0
data-room-ui/packages/G2Plots/柱状图/分组柱状图.js

@@ -668,6 +668,7 @@ const option = {
     }
   },
   label: {
+    offsetY: 20,
     // 可手动配置 label 数据标签位置
     position: 'middle', // 'top', 'middle', 'bottom'
     // 配置样式

+ 1 - 0
data-room-ui/packages/G2Plots/柱状图/圆角柱状图.js

@@ -593,6 +593,7 @@ const option = {
     type: ''
   },
   label: {
+    offsetY: 20,
     // 可手动配置 label 数据标签位置
     position: 'bottom', // 'top', 'bottom', 'middle'
     // 配置样式

+ 1 - 0
data-room-ui/packages/G2Plots/柱状图/基础柱状图.js

@@ -446,6 +446,7 @@ const option = {
     fill: 'l(90) 0:#5AA6AB 1:#217AB1'
   },
   label: {
+    offsetY: 13,
     // 可手动配置 label 数据标签位置
     position: 'middle', // 'top', 'bottom', 'middle',
     // 配置样式