首页样式调整

This commit is contained in:
zhaoxiao
2021-09-26 15:01:40 +08:00
parent 57f0130320
commit 4198783ccf
+8 -2
View File
@@ -150,9 +150,12 @@ export default {
bottom: 20, bottom: 20,
itemGap: 30, // 图例间距 itemGap: 30, // 图例间距
itemWidth: 13, itemWidth: 13,
data: ['Search Engine', 'Direct', 'Email', 'Union Ads', 'Video Ads', 'Search Engine1', 'Direct1', 'Email1', 'Union Ads1', 'Video Ads1'], data: [],
formatter: function (name) { formatter: function (name) {
return name.length > 7 ? name.substr(0, 7) + '...' : name return name.length > 7 ? name.substr(0, 7) + '...' : name
},
tooltip: {
show: true
} }
}, },
tooltip: { tooltip: {
@@ -167,7 +170,10 @@ export default {
width: '50%', width: '50%',
label: { label: {
show: false, show: false,
position: 'center' position: 'center',
formatter: function (params) {
return params.name.length > 8 ? params.name.substr(0, 8) + '...' : params.name
},
}, },
emphasis: { emphasis: {
label: { label: {