You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: