PDA

View Full Version : how to disable the hiding behavior with the legend?



sreenath886
20 Nov 2011, 9:16 PM
When i click the variable in the legend, the associated bars disappear and everything shifts about, however the labels don't stay consistent.is there a way to just disable the hiding behavior with the legend?

this is my code


items: {
xtype: 'chart',
id: '',
animate: true,
store: myStore,

dataField: 'mark',
categoryField: 'subject',

shadow: true,
legend: {

position: 'left'

},

mitchellsimoens
21 Nov 2011, 8:55 AM
Looks like there isn't an easy way to do this but you would have to override Ext.chart.LegendItem's createLegend method. At the bottom of this method is where it listens for the mousedown and hides the series. createLegend is a long method that could be improved IMO.

sreenath886
21 Nov 2011, 8:21 PM
thank you mitchel