如图
右边的数据是我自定义格式化显示出来的,代码如下
legend: {
show: 'true',
top: '30%',
left: '50%',
orient: 'vertical',
icon:"circle",
itemWidth:8,
itemHeight:8,
data:this.currentLegend,
selectedMode: false,
// 自定义格式化数据
formatter: name => {
var index = 0;
var clientlabels = this.currentLegend;
var clientcounts = this.currentData;
clientlabels.forEach(function(value, i) {
if (value == name) {
index = i;
}
});
return name + " " + clientcounts[index].value + '%'
}
},
但是我想要实现下面的效果,不知道如何实现
https://blog.csdn.net/GXing00...
可以看看这篇博客