[英]Extjs chart zoom out
I am kinda new to Extjs, and I am searching for a way to zoom out from a chart. 我对Extjs有点陌生,我正在寻找一种缩小图表的方法。 I have found the way to zoom in by adding a listener: 我找到了通过添加侦听器进行放大的方法:
listeners: {
select: {
fn: function(me, selection) {
me.setZoom(selection);
me.mask.hide();
}
}
}
but now, I want to reset the zoom and view the whole chart - and I can't find how to do that. 但是现在,我想重置缩放比例并查看整个图表-但我找不到执行该操作的方法。 I don't care having a special button for that.. Thanks! 我不在乎有一个特殊的按钮。。谢谢!
我找到了解决方法...需要使用以下功能:restoreZoom()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.