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

[charts] Ability to customize background color of pieArcLabel in PieChart #16161

Open
good-jinu opened this issue Jan 13, 2025 · 2 comments
Open
Labels
component: charts This is the name of the generic UI component, not the React module! customization: logic Logic customizability new feature New feature or request

Comments

@good-jinu
Copy link
Contributor

good-jinu commented Jan 13, 2025

Summary

I attempted to add background colors to the labels within a pie chart, as shown in the image.

스크린샷 2025-01-13 오후 9 35 03

Examples

I wanted to add label's background color to this

스크린샷 2025-01-13 오후 9 45 23

However, I encountered significant difficulties in achieving this. example that has given me trouble

Therefore, I propose the implementation of a mechanism to directly apply background colors to these labels.

Motivation

It may be better to use pie component with easier customization option

Search keywords: pie chart, label, style, svg, slots, background color

@good-jinu good-jinu added new feature New feature or request status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 13, 2025
@github-actions github-actions bot changed the title [chart] Ability to customize background color of pieArcLabel in PieChart [charts] Ability to customize background color of pieArcLabel in PieChart Jan 13, 2025
@michelengelen
Copy link
Member

@JCQuintas couldn't this be similar to #16121 ?

@michelengelen michelengelen added customization: logic Logic customizability component: charts This is the name of the generic UI component, not the React module! labels Jan 14, 2025
@alexfauquette
Copy link
Member

Not exactly, this is a request ot be able to display a background on text that we could consider extending to other.

That would require to compute the text dimensions to know the size of the rectangle to apply

@alexfauquette alexfauquette removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: charts This is the name of the generic UI component, not the React module! customization: logic Logic customizability new feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants