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

旭日图 levels层级标签formatter不生效 #12223

Closed
Lidozh opened this issue Mar 3, 2020 · 5 comments
Closed

旭日图 levels层级标签formatter不生效 #12223

Lidozh opened this issue Mar 3, 2020 · 5 comments
Assignees
Labels
bug difficulty: easy Issues that can be fixed more easily than the average. topic: sunburst

Comments

@Lidozh
Copy link

Lidozh commented Mar 3, 2020

Version

4.6.0

Steps to reproduce

想通过为旭日图是某一级设置label设置formatter格式,设置位置在series.levels.label.formatter时不生效,尝试过设置series.label.formatter生效,不过是针对所有层级的,这个是否是bug。

What is expected?

series.levels.lebel.formatter 设置某个level层级的标签格式

What is actually happening?

不生效

@echarts-bot
Copy link

echarts-bot bot commented Mar 3, 2020

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 you have posted enough image to demo your request. 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 [email protected]. Please attach the issue link if it's a technical questions.

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

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Mar 3, 2020
@Ovilia
Copy link
Contributor

Ovilia commented Mar 3, 2020

levels[0] 是针对返回上级的按钮的,第一级应该是 levels[1].

@Lidozh
Copy link
Author

Lidozh commented Mar 7, 2020

https://gallery.echartsjs.com/editor.html?c=xsOJVxFUj&v=1
如案例所示,分别为levels[1],levels[2]设置label.formatter不生效

@Ovilia
Copy link
Contributor

Ovilia commented Mar 9, 2020

谢谢反馈,应该是 bug

@Ovilia Ovilia removed pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Mar 9, 2020
@Ovilia Ovilia self-assigned this Mar 9, 2020
@Ovilia Ovilia added the difficulty: easy Issues that can be fixed more easily than the average. label Mar 9, 2020
@Ovilia Ovilia added this to the 4.9.0 milestone Mar 9, 2020
@100pah
Copy link
Member

100pah commented Apr 21, 2020

Similar to #12227. The treemap case is fixed in #12471. But sunburst not fixed yet.
I think sunburst should also use "beforeLink data.wrapMethod('getItemModel', ...)" to inject "LevelModel", rather than do it in tree.getModel.
After sunburst fixed, the level info (e.g., levelOptions, getLevelModel) should be removed from Tree.js.

100pah added a commit that referenced this issue Jun 4, 2020
fix(sunburst): enables label formatter in levels #12223
@pissang pissang closed this as completed Aug 4, 2020
@pissang pissang removed this from the 4.9.0 milestone Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug difficulty: easy Issues that can be fixed more easily than the average. topic: sunburst
Projects
None yet
Development

No branches or pull requests

4 participants