Reputation: 113
I would like to listen for the "itemclick" event on a polar chart in ExtJS 5 (Pie series).
So I would listen to it in my controller in the "init" function and use the "control" method to add the listener. But when I try to click on the chart, nothing appends... I also tried adding it with "addListener" or "on"
Before in ExtJS 4, we had to listen to this event on the series, I tried it, but it's not better...
Have somebody a solution?
Here the extJS 5 docs of polar chart.
Upvotes: 1
Views: 633
Reputation: 461
you should just be able to set the listener on the chart itself, not the series...
Ext.define('MyApp.view.myPolarChart', {
....
listeners: {
itemclick: function(series, item, event, eOpts){
}
}
....
Upvotes: 1