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

How to set the colors in the LegendKey? #2495

Open
sgi1e opened this issue Nov 1, 2023 · 1 comment
Open

How to set the colors in the LegendKey? #2495

sgi1e opened this issue Nov 1, 2023 · 1 comment

Comments

@sgi1e
Copy link

sgi1e commented Nov 1, 2023

By using the method $chart->getStyle()->setColors($colors); It effectively changes the colors of the bars, in my case I am using the "percent_stacked_bar" chart type. The problem is that the LegendKey does not change the color.

@sgi1e
Copy link
Author

sgi1e commented Nov 1, 2023

By using the method $chart->getStyle()->setColors($colors); It effectively changes the colors of the bars, in my case I am using the "percent_stacked_bar" chart type. The problem is that the LegendKey does not change the color.

#1865 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant