Hi, I cannot output data on click of pie chart.
callback: function (chart) {
chart.pie.dispatch.on('elementClick', function (e) {
console.log(e.data);
this.chartData.emit(e.data);
});
chartData variable is an @output event emitter object, but on clicking pie chart, i get value in console, but it says cannot read emit property of undefined.
Hi, I cannot output data on click of pie chart. callback: function (chart) { chart.pie.dispatch.on('elementClick', function (e) { console.log(e.data); this.chartData.emit(e.data); });
chartData variable is an @output event emitter object, but on clicking pie chart, i get value in console, but it says cannot read emit property of undefined.
Kindly help