series: [
name: '占比',
colorByPoint: true,
data: [{
name: '开号订单',
y: tnbr/(tcharge+tnbr),
sum:123,
sliced: true,
selected: true
}]
}]
要拿到上面代码块所示的sum属性该怎么拿呢,之前我试了使用下面几种方式
this.series.data.sum ==错误
this.sum ==错误
this.data.sum ==错误
最后查看API,百度,各种方式终于找到了下面这种方式
this.point.sum
这样就可以在formatter中随意获取需要的数据