legend: {
position: 'right',
flipPage: false,
maxRow: 2,
offsetX:-105,
itemSpacing:-5,
itemWidth:90,
maxItemWidth: 95,
itemHeight: 7,
itemName: {
style: { fill: '#CFDEED', fontSize: 10 }
}
},
tooltip: {
formatter: (d) => {
return { name: d.type, value: d.value }
}
}
}"
实现效果:
主要配置:
flipPage: false,
maxRow: 2,
offsetX:-105,
itemSpacing:-5,
itemWidth:90,
maxItemWidth: 95,