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

[Bug] pie chart label.style.fill doesn't work when position = 'inside' or 'inside-center' #3828

Closed
hurricane1998 opened this issue Mar 20, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@hurricane1998
Copy link

Version

1.13.7

Link to Minimal Reproduction

https://visactor.io/vchart/demo/pie-chart/basic-pie?keyword=pieChart

Steps to Reproduce

set pie chart label.style.fill = 'red',set position = 'inside' or 'inside-center' as the same time.

Current Behavior

The style.fill configuration of pie chart label takes effect when the position is 'outside', 'inside-inner' and 'inside-outer', but it does not take effect when it is 'inside' and 'inside-center'.

Image

Image

Image

Image

Image

Expected Behavior

position = 'inside' or 'inside-center' has the same result

Environment

- OS:Windows11
- Browser:Chrome 134.0.6998.89
- Framework:Vue@3

Any additional comments?

No response

@hurricane1998 hurricane1998 added the bug Something isn't working label Mar 20, 2025
@xiaoluoHe
Copy link
Contributor

@hurricane1998 The labels inside the graphics will by default enable smart invert of colors.
You can disable it by setting label.smartInvert: false, then the color will be exactly same as what you set

@hurricane1998
Copy link
Author

It worked!
thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants