Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] TreePathInfo property of sunburst chart label formatter params could be adopt by document and TS #18308

Closed
Mingeax opened this issue Feb 25, 2023 · 0 comments · Fixed by #18310
Labels
bug en This issue is in English typescript

Comments

@Mingeax
Copy link

Mingeax commented Feb 25, 2023

What problem does this feature solve?

Aiming to display tree structure data, and show the ratio of every data item, sunburst charts should provide both of the information to its label formatter params.

But, up to now params still can't receive that, by document. However, actually there is a property 'treePathInfo', which contains the value of the data item and its ancestors. And its length represents the level of data items. Thus we can simply calculate the ratio and get the hierarchy. Unfortunately, both document and TS don't acknowledge it.

I don't know what authority's attitude towards this property is, but I hope it can be formal in the future.

What does the proposed API look like?

issue1

issue2

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Feb 25, 2023
@plainheart plainheart added bug typescript and removed new-feature pending We are not sure about whether this is a bug/new feature. labels Feb 25, 2023
plainheart added a commit to apache/echarts-doc that referenced this issue Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English typescript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants