Przeglądaj źródła

style(charts): 调整图表布局边距参数

liujt 5 miesięcy temu
rodzic
commit
c5cde6c8f3

+ 3 - 3
src/views/bpm/vis-page/components/charts/BarChart.vue

@@ -38,7 +38,7 @@ export default {
     },
     showLabel: {
       type: Boolean,
-      default: true
+      default: false
     },
     labelPosition: {
       type: String,
@@ -57,9 +57,9 @@ export default {
       type: Object,
       default: () => ({
         top: '14%',
-        left: '5%',
+        left: '8%',
         right: '6%',
-        bottom: '8%',
+        bottom: '5%',
         containLabel: true
       })
     },

+ 1 - 1
src/views/bpm/vis-page/components/charts/QualificationRateChart.vue

@@ -53,7 +53,7 @@ export default {
 
       const option = {
         backgroundColor: 'transparent',
-        grid: { left: '2%', right: '2%', bottom: '12%', top: '10%', containLabel: true },
+        grid: { left: '4%', right: '2%', bottom: '10%', top: '10%', containLabel: true },
         tooltip: {
           trigger: 'axis',
           formatter: '{b}: {c}',