-
Notifications
You must be signed in to change notification settings - Fork 104
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
Multicolor Line Graph Line #79
Comments
+1 |
Looks like the line's gradient is set on AnimatedLineGraph.tsx:282 with an array of 5 colors:
It appears that first 3 colors define a gradient for before the selection point (when For example, if we change the array to:
We get this result (note that I've changed the default dot to a line): I have a related request to this, where I'd like to prevent it from using a gradient at all, so the line remains the same color regardless of the pan state: I'm brand new to this library and not sure if this has come up before (I searched the issues but didn't see anything else) so am not sure exactly how this would best be implemented. But I'd be happy to make a PR if we can land on a plan first that's likely to be accepted. It seems like we need another prop for |
How might i go about creating a multicolor line with this library? Like this:
Thanks
The text was updated successfully, but these errors were encountered: