View Full Version : click Listener with columnChart

6 Aug 2009, 10:56 AM
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.

11 Sep 2009, 8:07 AM
Is there a work around for this? I am having the same issue.

29 Sep 2009, 5:53 AM
did anyone find a solution?

29 Sep 2009, 6:12 AM
Docs are incomplete right now.

Try using itemclick

And then stop in debug and examine exactly what you get passed.

29 Sep 2009, 8:45 AM
I was able to replicate the behavior by adding a mouse down listener.

var el = Ext.get('chartObj');
el.addListener('mousedown', function(){