This commit is contained in:
duanliang
2025-04-03 09:45:43 +08:00
parent 26d602e659
commit d46f5e211d

View File

@@ -36,11 +36,11 @@
const center = ['50%', '34%']
params = {
legend: {
x: 'center',
x: 'left',
y: 'bottom',
itemHeight: fitChartSize(8),
itemWidth: fitChartSize(8),
itemGap: fitChartSize(14),
itemHeight: fitChartSize(5),
itemWidth: fitChartSize(5),
itemGap: fitChartSize(8),
formatter: function (name) {
let obj = props.list.find((item) => item.name == name)
return '{name|' + name + '} {value|' + obj.value + '}{value|%}'
@@ -49,11 +49,11 @@
rich: {
name: {
color: '#fff',
fontSize: fitChartSize(14)
fontSize: fitChartSize(12)
},
value: {
color: '#00D5F6',
fontSize: fitChartSize(14)
fontSize: fitChartSize(12)
}
}
}