PDA

View Full Version : how to call a function when we click on legend item in charts



sabitha566
11 Nov 2014, 11:13 PM
Hi,
I am new to Extjs, can you please tell me how to call a function by passing legend label when we click on legend item in charts.
Thanks

sabitha566
12 Nov 2014, 1:16 AM
Hi
Found solution, we can call a function as follow
Ext.define('Fiddle.override.chart.LegendItem', {
override: 'Ext.chart.LegendItem',
onMouseDown: function () {
functionName(this.getLabelText());
}
});