-
Notifications
You must be signed in to change notification settings - Fork 2
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
Change pie chart color #14
Comments
Thank you for opening this issue @hypolas. This fork has been re-evaluating the chart configuration options and the series Looking at the implementation, it looks like setting the One goal of this fork is to make themes more straight forward. We don't require themes to be globally registered (they are passed in with the chart configuration). Would a suitable alternative be to take a theme you like, and then replace the
Then your pie chart would be constructed like this:
I believe that having a single method of setting the theme for the series would be more straight forward, but I would appreciate your feedback before we make any changes. Thank you! |
This change removes the ability to configure the styling at the series level. As seen in this change and discussed in issue #14, these style options were not very broadly recognized. Instead the goal is to make theme customization easier. As a potential replacement to this configuration the Themes can now accept series and background color changes. If we do decide that we want to bring back per-series styling, I think we should make those top level fields so that we only introduce fiels which are broadly recognized.
@hypolas, I just submitted a PR which removes the series Let me know your thoughts on moving forward with a change like this, or if you think there is a good reason to leave this style configuration at the series level. Thank you! |
Hello. Than you for your very fast answer. For solve my problem quikly, I had modified my code like this :
g.Color is a slice of color previously generated with this code.
If this can help somebody ;) |
Thank you for the feedback @hypolas, I am glad to hear that the custom theme options is a workable solution for you. I went ahead and polished PR #15 further, making sure that Font configuration (which is broadly used and common) is encapsulated in the Once merged I plan to release this under version Let me know if you have questions or thoughts, thank you again! |
These changes were just pushed under the |
Hello,
I try to set color to pie chart serie.
In my case, I need, for exemple, to set color "red" (for error data) and green (for valide data) .
That seems don't work. I try with:
The text was updated successfully, but these errors were encountered: