echarts [Feature] updateAxisPointer事件没有找到对应的api

wd2eg0qa  于 4个月前  发布在  Echarts
关注(0)|答案(2)|浏览(62)

What problem does this feature solve?

在案例中看到了一个updateAxisPointer事件,但是在api文档中没有找到相关的信息

What does the proposed API look like?

想知道这个信息在哪里

nkhmeac6

nkhmeac61#

@dmcisgood It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED

TITLE

[Feature] updateAxisPointer event did not find the corresponding api

BODY

What problem does this feature solve?

I saw an updateAxisPointer event in the case, but no information was found in the API documentation

What does the proposed API look like?

Wondering where this information is

ryevplcw

ryevplcw2#

Yes, API docs do not mention updateAxisPointer, but a repo search will find calls like:
echarts/src/component/tooltip/TooltipView.ts

Line 436 in 586ca04

| | api.dispatchAction({ |

This action format works:
chart.dispatchAction({ type: 'updateAxisPointer', seriesIndex: 0, dataIndex: 44 });

For the event see:
echarts/test/dataset-layout.html

Line 207 in 586ca04

| | chart&&chart.on('updateAxisPointer',function(event){ |

相关问题