echarts icon indicating copy to clipboard operation
echarts copied to clipboard

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

Open dmcisgood opened this issue 2 years ago • 3 comments

What problem does this feature solve?

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

What does the proposed API look like?

想知道这个信息在哪里

dmcisgood avatar Jul 28 '23 03:07 dmcisgood

@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

echarts-bot[bot] avatar Jul 28 '23 03:07 echarts-bot[bot]

Yes, API docs do not mention updateAxisPointer, but a repo search will find calls like: https://github.com/apache/echarts/blob/586ca04b5c925d455db35324b2d4ecd746b93a27/src/component/tooltip/TooltipView.ts#L436 This action format works: chart.dispatchAction({ type: 'updateAxisPointer', seriesIndex: 0, dataIndex: 44 });

For the event see: https://github.com/apache/echarts/blob/586ca04b5c925d455db35324b2d4ecd746b93a27/test/dataset-layout.html#L207

helgasoft avatar Aug 08 '23 03:08 helgasoft

只能传dataIndex吗,如果我x轴的type为time是一个时间戳,如何让他跟着传进来的时间戳走呢,有大佬有类似的例子吗

badspider7 avatar Dec 28 '24 10:12 badspider7