提交 098436fa authored 作者: junjie's avatar junjie

fix(视图): 坐标轴,标签等自适应

上级 f5b39236
...@@ -88,6 +88,9 @@ export const BASE_BAR = { ...@@ -88,6 +88,9 @@ export const BASE_BAR = {
title: { title: {
text: '' text: ''
}, },
grid: {
containLabel: true
},
tooltip: {}, tooltip: {},
legend: { legend: {
show: true, show: true,
...@@ -114,6 +117,9 @@ export const HORIZONTAL_BAR = { ...@@ -114,6 +117,9 @@ export const HORIZONTAL_BAR = {
title: { title: {
text: '' text: ''
}, },
grid: {
containLabel: true
},
tooltip: {}, tooltip: {},
legend: { legend: {
show: true, show: true,
...@@ -141,6 +147,9 @@ export const BASE_LINE = { ...@@ -141,6 +147,9 @@ export const BASE_LINE = {
title: { title: {
text: '' text: ''
}, },
grid: {
containLabel: true
},
tooltip: {}, tooltip: {},
legend: { legend: {
show: true, show: true,
...@@ -169,6 +178,9 @@ export const BASE_PIE = { ...@@ -169,6 +178,9 @@ export const BASE_PIE = {
title: { title: {
text: '' text: ''
}, },
grid: {
containLabel: true
},
tooltip: {}, tooltip: {},
legend: { legend: {
show: true, show: true,
...@@ -199,6 +211,9 @@ export const BASE_FUNNEL = { ...@@ -199,6 +211,9 @@ export const BASE_FUNNEL = {
title: { title: {
text: '' text: ''
}, },
grid: {
containLabel: true
},
tooltip: { tooltip: {
trigger: 'item' trigger: 'item'
}, },
...@@ -252,6 +267,9 @@ export const BASE_RADAR = { ...@@ -252,6 +267,9 @@ export const BASE_RADAR = {
title: { title: {
text: '' text: ''
}, },
grid: {
containLabel: true
},
tooltip: {}, tooltip: {},
legend: { legend: {
show: true, show: true,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论