我一直在进行此饼图转换:https://bl.ocks.org/SpaceActuary/97d70de639c9c1724f434a9c64cc1a68
我正在努力使它成角度。从这里返回未定义:
let outerRad0 = this.radiusScale(d3.sum(data0));
let outerRad1 = this.radiusScale(d3.sum(data1));
我尝试了几个小时,但无法弄清这里缺少的部分。
Stackblitz:https://stackblitz.com/edit/angular-v3qd47