【问题标题】:AmCharts zoom out eventAmCharts 缩小事件
【发布时间】:2016-09-08 11:17:39
【问题描述】:

我正在使用 AmCharts 并计划了非常具体的操作,这些操作应该在放大和缩小时执行。

“放大”事件检测到放大。但是,我找不到任何特定于检测缩小的东西。是同一个事件还是根本没有?

【问题讨论】:

  • 你找到解决方案了吗?
  • 我的同事通过var initEventHandler = function (event) { event.chart.zoomOut = function () { <stuff-we-want-to-do> }; }; 使它工作。我不确定它到底是如何工作的,所以我没有添加这个作为答案。

标签: javascript amcharts


【解决方案1】:

这会检测放大和缩小:

chart.chartContainer.events.on("wheel", yourFunction);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-28
    • 1970-01-01
    • 1970-01-01
    • 2020-07-10
    相关资源
    最近更新 更多