-
-
Couldn't load subscription status.
- Fork 1.4k
Description
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!