forked from Gitlink/forgeplus-react
调整数据统计展示效果
This commit is contained in:
parent
070af23ff2
commit
17daf34f07
|
@ -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'
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue