npm install ng2-charts --save

我在我的Angular 5项目中使用ng2-charts . 正在使用Pie图表 .

public chartClicked(e:any):void {
console.log(e);

}

此事件在其文档中提供 . 此事件对于饼图的所有部分都很常见 . 我的要求是将不同的点击事件绑定到这3个不同的部分,如图所示 . 如何选择不同的部分并执行不同的操作?