如何在高图中检测缩放事件? [英] How do I detect a zoom event in highcharts?

查看:85
本文介绍了如何在高图中检测缩放事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Highcharts中检测缩放事件?我的用例是我在图表外部有一些状态,当用户放大其中的一部分时,我想检测x轴上的新时间范围,并更新相应的外部状态。

Is it possible to detect a zoom event in Highcharts? My use case is that I have some state external to the chart, and when the user zooms in on part of it I want to detect what the new time range on the x-axis is and update the corresponding external state.

推荐答案

您是否尝试过 Highcharts API

您可能想看看@
xAxis.events.setExtremes
和/或
chart.events.selection

这篇关于如何在高图中检测缩放事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆