echarts 旭日图点击事件nodeClick

t98cgbkg  于 2022-10-26  发布在  Echarts
关注(0)|答案(2)|浏览(540)

What problem does this feature solve?

点击一个扇形区域,可以看到这个扇形所在的上(上之根节点)下(下至最底层)级所有的项目

What does the proposed API look like?

旭日图的点击属性 nodeClick 目前只有三个选项

1.false:节点点击无React。
2.'rootToNode':点击节点后以该节点为根结点。
3.'link':如果节点数据中有 link 点击节点后会进行超链接跳转。
期望再加一个节点选项:
4.点击节点后以“根”节点为根节点,而不是第二个 以“该节点”为根节点

iyr7buue

iyr7buue1#

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that it containsa minimum reproducible demoand necessaryimagesto illustrate. Otherwise, our committers will ask you to do so.

  • A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list .

Have a nice day! 🍵

yrdbyhpb

yrdbyhpb2#

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

TRANSLATED

TITLE

Sunburst chart click event nodeClick

BODY

What problem does this feature solve?

Click on a fan area to see all the items at the upper (root node) (bottom to bottom) level where the fan is located

What does the proposed API look like?

The click property nodeClick of the Sunrise chart currently has only three options

1.false: Node clicks do not respond.
2.'rootToNode': Click on a node to take that node as the root node.
3.'link': If there is a link in the node data, the hyperlink jumps after clicking on the node.
Expect to add another node option:
4. Click on the node to "root" node as the root node, not the second "node" as the root node

相关问题