Hybrid View
-
28 Apr 2012 10:59 PM #1
Cannot zoom chart
Cannot zoom chart
I'm using ExtJS 4.1-rc2 and trying to zoom chart. I'm following the code sample for the 'mask' config and 'select' event from the api doc and here is my code for the chart:
and I'm getting the UI like:Code:Ext.widget("chart", { style : 'background:#fff', animate : true, shadow : false, store : this.chartStore, itemId : 'mychart', mask : true, legend : { position : 'bottom' }, listeners : { select : { fn : function(me, selection) { me.setZoom(selection); me.mask.hide(); } } }, axes : [{ type : 'Numeric', position : 'left', fields : this.numericFields, title : EasyAdmin.Locale .localize("Usage Level"), grid : { odd : { opacity : 0.7, fill : '#ddd', stroke : '#bbb', 'stroke-width' : 0.5 } } }, { type : 'Time', position : 'bottom', dateFormat : EAUtil.getDateFormat(), fields : this.timeFields, title : EasyAdmin.Locale.localize("Date"), label : { rotate : { degrees : -90 } }, grid : true }], series : this.series });
chart.jpg
And when I'm trying to zoom by trying to select any region or clicking then nothing happens! Also not getting any mask element that I can use to select region.
-
30 Apr 2012 4:42 AM #2
There's something strange going on here, I'm prone to say it's a bug.
Ext.chart.Mask constructor says:
So I've tried to set enableMask:true in Ext line chart example but it throws an error and doesn't work.PHP Code:constructor: function(config) {
var me = this,
resizeHandler;
me.addEvents('select');
if (config) {
Ext.apply(me, config);
}
if (me.enableMask) {
me.on('afterrender', function() {
//create a mask layer component
var comp = new Ext.chart.MaskLayer({
renderTo: me.el,
hidden: true
});
comp.el.on({
'mousemove': function(e) {
me.onMouseMove(e);
},
'mouseup': function(e) {
me.resized(e);
}
});
// ...
Do you want me to move this thread to Bugs?Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
30 Apr 2012 5:56 AM #3
Thanks for your findings. Yes, please move this thread to bugs.
-
25 May 2012 12:31 PM #4
chart does not firing the select event when you setr mask true or horizontal or vertical, if I set enableMask: true firebug show me error
Uncaught TypeError: Cannot call method 'hasOwnProperty' of undefinedWemerson Januario
Skype: wemerson.januario
Email: wemerson.januario@gmail.com
Fone: 62 84101145 - Goiânia-GO- Brazil
Consulting and Training Ext JS
Projects: (Nubes ERP)
-
1 Aug 2012 5:04 PM #5
Zoom working in charts 4.1.1?
Zoom working in charts 4.1.1?
Just checking if chart zoom works in 4.1.1 or not. We are looking to purchase, but need zoom to work before we go ahead.
-
10 Oct 2012 3:19 AM #6
Yes, it is very important for me as well. Is it fixed?
Thank you for reporting this bug. We will make it our priority to review this report.




Reply With Quote