View Full Version : Bar Chart item click listener

24 Apr 2013, 9:52 AM
I've setup a click listener for my chart, and I would like to be able to pass along data from a clicked item (e.g. an individual bar) such as the label, etc. Instead what I am seeing that [this] is the chart object. Is there a way to get the object I'm looking for?

click : function(e, eOpts) {console.log(this) } // bar chart object, not individual bar


24 Apr 2013, 1:55 PM
Figured out what was wrong. Adding a click listener, adds a listener to the entire chart

listeners: { click: function() {} }}

But adding an itemmouseup listener within the series:[] param added a listener to the individual bar items.

series: [{
type : 'column',
axis : 'left',
highlight : true,
listeners: {
'itemmouseup': function(item) {