-
click Listener with columnChart
click Listener with columnChart
I've tried adding a listener for a columnChart but to no avail. Nothing happens when I click on the chart.
I'm beginning to think the columnChart does not support the click event.
I want to have listener return the column clicked on similar to the line chart in the chart examples.
this is the listener code I added to the columnChart definition:
listeners: {
click: function(o){
var rec = store.getAt(o.index);
Ext.example.msg('Item Selected', 'You chose {0}.', rec.get('name'));
}
}
Any assistance is greatly appreciated.
-
Adding click event to a chart
Adding click event to a chart
Is there a work around for this? I am having the same issue.
-
Hi,
did anyone find a solution?
-
Sencha - Ext JS Dev Team
Docs are incomplete right now.
Try using itemclick
And then stop in debug and examine exactly what you get passed.
-
Work around
Work around
I was able to replicate the behavior by adding a mouse down listener.
var el = Ext.get('chartObj');
el.addListener('mousedown', function(){
window.location.href('../XXX/XXXX.htm');
});
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us