diff --git a/src/components/charts/G2/components/Pie/base.vue b/src/components/charts/G2/components/Pie/base.vue index 992bbc42..312a8a40 100644 --- a/src/components/charts/G2/components/Pie/base.vue +++ b/src/components/charts/G2/components/Pie/base.vue @@ -13,7 +13,7 @@ export default { props: { padding: { required: false, - default: () => [30, 30, 30, 30] + default: () => [40, 40, 40, 40] } }, data () { diff --git a/src/components/charts/G2/mixins/props/chart.js b/src/components/charts/G2/mixins/props/chart.js index 3b72e8bd..0e3ad868 100644 --- a/src/components/charts/G2/mixins/props/chart.js +++ b/src/components/charts/G2/mixins/props/chart.js @@ -14,7 +14,7 @@ export default { // 设置图表的内边距 http://antv.alipay.com/zh-cn/g2/3.x/api/chart.html#_padding padding: { required: false, - default: () => [30, 40, 45, 50] + default: () => [30, 40, 40, 50] }, // 设置图表整体的边框和背景样式 http://antv.alipay.com/zh-cn/g2/3.x/api/chart.html#_background background: { diff --git a/src/pages/demo/chart/all/index.vue b/src/pages/demo/chart/all/index.vue index 30674e3e..91126a32 100644 --- a/src/pages/demo/chart/all/index.vue +++ b/src/pages/demo/chart/all/index.vue @@ -3,49 +3,49 @@ - + - + - + - + - + - + - + - +