我一直在使用primeng圆环图。问题是当我向左或向右做出传奇位置时,它会抛出一个错误"无法读取属性' 0'未定义"但是对于顶部或底部工作正常。请提前帮助。谢谢。我的代码就在这里..
this.options = {
responsive: false,
maintainAspectRatio: false,
legend:{
position: 'right'
}
};
errors.ts:42 ERROR TypeError: Cannot read property '0' of undefined
at i.draw (Chart.bundle.min.js:14)
at t.Controller.<anonymous> (Chart.bundle.min.js:13)
at Object.a.each (Chart.bundle.min.js:14)
at t.Controller.draw (Chart.bundle.min.js:13)
at i.a.render (Chart.bundle.min.js:13)
at Object.startDigest (Chart.bundle.min.js:13)
at Chart.bundle.min.js:13
at ZoneDelegate.invokeTask (zone.js:424)
at Object.onInvokeTask (ng_zone.ts:254)
at ZoneDelegate.invokeTask (zone.js:423)