PDA

View Full Version : Working Exmaple for Chart Zoom.



rajindarr
28 Aug 2013, 2:46 AM
Can anyone please provide a example for chart zoom?

we tried with the below code But not understanding how to zoom the chart. the below code is given in sencha docs.

{
xtype : 'usersessionchart',
mask: 'horizontal',
animate: true,
store : Ext.create('Ext.data.JsonStore', {
fields : ['name','count'],
data : [['xtx',123],['sda',12],['123',100]]
}),
listeners: {
dbClick: {
fn: function(me, selection) {
me.setZoom(selection);
me.mask.hide();
}
}
},
}

Gary Schlosberg
29 Aug 2013, 3:02 PM
Perhaps you need 'enableMask: true'.

Here's an Sencha Fiddle example with zoom:

d9