PDA

View Full Version : [Question] How to customize the mask of the chart?



ultrakyo
26 Jan 2012, 4:54 PM
Hi, according to the ExtJs 4.0 API Doc,

we can show mask to select region on the chart to zoom that region as code below:

items: { xtype: 'chart', animate: true, store: store1, mask: 'horizontal', listeners: { select: { fn: function(me, selection) { me.setZoom(selection); me.mask.hide(); } } },However, when I copy/paste the code above to my chart, the mask starts from the top of the window which isn't where the chart is belong to.

QUESTION:
> Is there anyway to keep the mask only in the chart area?

Thank you in advance.

ultrakyo
26 Jan 2012, 5:21 PM
http://www.sencha.com/forum/showthread.php?155370-4.0.7-Chart-mask-(for-selection-zooming)-malfunctioning