我不能使用我使用Echarts 2.x饼图的拖动计算功能的新版本(3.x / 4.x)。新版本是否支持此功能?可计算的选件是否适用于较新的版本?如果您支持我,那么如果您能帮助我做我需要做的事情,我会很高兴。
var option = {
title: {
text: result.Baslik,
subtext: result.AltBaslik,
x: 'center'
},
toolbox: {
show: true,
feature: {
magicType: {
show: true,
type: ['pie']
},
restore: {
show: true
},
saveAsImage: {
show: true
}
}
},
calculable: true,
tooltip: {
trigger: 'item',
formatter: "{a} <br/>{b} : {c} " + result.BirimAdi + " ({d}%)"
},
legend: {
orient: 'vertical',
x: 'left',
data: (function () {
var res = [];
var len = result.Veri.length;
for (var i = 0, size = len; i < size; i++) {
res.push({
name: result.Veri[i].Ad
});
}
return res;
})()
},
series: [
{
name: 'Grafik',
type: 'pie',
radius: '55%',
center: ['50%', '60%'],
data: (function () {
var res = [];
var len = result.Veri.length;
for (var i = 0, size = len; i < size; i++) {
res.push({
name: result.Veri[i].Ad,
value: result.Veri[i].Deger
});
}
return res;
})(),
itemStyle: {
emphasis: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}
]
};