apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.58k stars 19.62k forks source link

Whether echarts can listen to the event when the points be snapped #9478

Closed heartAndRain closed 5 years ago

heartAndRain commented 5 years ago

General Questions

PLEASE MAKE SURE OF ALL THE FOLLOWING OPTIONS IN REQUIRED FIELDS ARE TICKED (with x)! Otherwise, the issue will not be answered. And think before you tick. :) 请确保以下每项都打上勾了!并且确保都做了这些事哦~ 这将大量简化我们的工作流程,使你的问题更快速得到解答。

In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:

Issue Type

Issue Details

Whether echarts can listen to the event when the points be snapped, just like the gif below

example

Expected Behavior

A callback should be provided

Current Behavior

I can not find some information about this in the document

Online Example

THIS IS REQUIRED FOR ALL BUG REPORTS AND QUESTIONS!!! 如果是提问或报 bug 一定要提供这一项!

http://www.echartsjs.com/examples/editor.html?c=line-stack

Topics

Anything Else We Need to Know

Environment

cuijian-dexter commented 5 years ago

@heartAndRain What events do you need? What is the trigger mode?

100pah commented 5 years ago

There is a event "updateAxisPointer".

chart.on('updateAxisPointer', function (e) { ... });
heartAndRain commented 5 years ago

There is a event "updateAxisPointer".

chart.on('updateAxisPointer', function (e) { ... });

Thanks, this solved my problem. But why can't I find a description about it in the official documentation?

leij1ang commented 5 years ago

更新文档还是积极点好 虽然麻烦,但是值得。。。。 ”updateAxisPointer“这个事件要是不看实例,还真不知道有这个