调整数据统计展示效果

This commit is contained in:
何童崇 2022-04-21 11:00:59 +08:00
parent 070af23ff2
commit 17daf34f07
1 changed files with 5 additions and 2 deletions

View File

@ -25,10 +25,13 @@ export default ({ id, className, title, dataList }) => {
tooltip: {
trigger: "item",
},
grid:{
bottom:.25*fontSizeText
},
legend: {
icon: 'circle',
data: dataList.map((item) => item.name),
bottom: 1.5 * fontSizeText,
bottom: .5* fontSizeText,
fontSize: fontSizeText,
itemGap: 20,
itemWidth: 8,
@ -41,7 +44,7 @@ export default ({ id, className, title, dataList }) => {
data: dataList,
label: {
formatter: function (params) {
return params.name + '\n\n' + `${params.value} ${params.percent}%`;
return params.name + '\n\n' + `${params.value} ${params.percent}%`;
},
color:'#000'
},