Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

highcharts Reset zoom按钮的点击事件

在使用highcharts时,使用chart.zoomType属性时,当多次拖动放大数据显示区域时,点击Reset zoom按钮,会直接回到最开始的状态,比如x轴区间为0~300,第一次拖动放大100~200区域数据显示,第二次拖动放大100~150区域数据显示,点击Reset zoom按钮,会直接返回到0~300区间,怎么在点击Reset zoom按钮时只退回到上一次拖动的区间。


在开始,是准备把每一次拖动是x轴两个值var min = event.xAxis[0].min;var max = event.xAxis[0].max;,把min和max存入一个数组,每拖动一次存进数组一次,在点击Reset zoom按钮是,每一次只回到上一次的两个值区间。
按钮的绑定事件应该怎么处理?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...