PDA

View Full Version : How to remove click listener from some items in chart legend?



usavahe
21 Jul 2014, 3:38 PM
Hi community;

I have a chart with two series:


{
type:'line',
axis: 'left',
highlight: true,
xField: 'name',
yField: 'data1'
},
{
type: 'column',
axis: 'left',
stacked: true,
highlight: true,
xField: 'name',
yField: ['data2', 'data3']
}

Now I want to remove the click listener from the legend items that represent the columns and leave the line working the way it is.

Any ideas?

scottmartin
28 Jul 2014, 4:21 PM
A quick search returns this:
http://www.sencha.com/forum/showthread.php?152086
http://stackoverflow.com/questions/21106404/disable-legend-click-event-for-extjs-bar-charts

usavahe
29 Jul 2014, 9:43 AM
I have tried those and they do not work. Can you put an example in Sencha fiddle with actual working code please?