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
Fill colour derived/contextual to value (Radial Bar) #568
Comments
hi, is there a way to have the gradient function in the same way, so when having a green->red gradient and the value is 25% ther shouldn't be any red yet visible in the gradient, any idea? |
Hi @junedchhipa , As described in my new issue #1652 I'm not able to make your code working even if described in the documentation (it triggers an error). Is it still something possible? |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apologies if this is already possible, in which case an explanation would be appreciated and perhaps the docs (or myself) might be missing something!
Is your feature request related to a problem? Please describe.
Say I've a radial bar that I'd like the fill colour to go green if value is greater than 75%, or red if less than 25%. Or perhaps even the fill colour derived by the value, so a different colour for each percentage.
This is of course different to a gradient fill as i'm referring to a single fill colour.
Describe the solution you'd like
To support a fill function that takes the value as a param and can return a colour.
Describe alternatives you've considered
I've tried the
updateOptions
method to set a fill colour with a derived value, this works, but seems to break the initialising fill animation.Any suggestions appreciated. Really enjoying working with this lib!
The text was updated successfully, but these errors were encountered: