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] center image in sunburst #20385

Open
nphias opened this issue Oct 1, 2024 · 1 comment
Open

[Feature] center image in sunburst #20385

nphias opened this issue Oct 1, 2024 · 1 comment
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@nphias
Copy link

nphias commented Oct 1, 2024

What problem does this feature solve?

i noticed on all examples of sunburst charts.. the zoom out middle button is a blue circle.
i would like to swap that for an image of my choosing, preferable with some on-click animation

What does the proposed API look like?

provide the option in the sunburst config.. or give an example of how to hack this

@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 Oct 1, 2024
@helgasoft
Copy link

provide the option in the sunburst config.. or give an example of how to hack this

oh yes, it is hacky to place an image in there - Demo. However the image layout is repeat: 'repeat', which you probably do not want.
Would be nice to have repeat: 'no-repeat' (single image) with responsive positioning like CSS background-position: center;, but that is not currently available in API.
A nice new feature candidate for v.6.0 though! Looks like the object to enhance is PatternObjectBase
image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants