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

[Feature Request] Different colors for up/down lines #4434

Closed
MrMooky opened this issue Jun 27, 2017 · 3 comments · Fixed by #8844
Closed

[Feature Request] Different colors for up/down lines #4434

MrMooky opened this issue Jun 27, 2017 · 3 comments · Fixed by #8844

Comments

@MrMooky
Copy link

MrMooky commented Jun 27, 2017

This is a feature request.

It would be nice to have the possibility to change the colors for lines that go up and down. If used for some sort of statistics, the linies going up could be green, the ones going down could be red.

Would be nice to have this sort of feature.

@etimberg
Copy link
Member

@MrMooky I think this is a good candidate for a plugin. I think implementation would follow the same way as https://github.com/bbc/Chart.Bands.js except that instead of changing the gradient colour above or below a threshold, the colour would change when the sign of the slope of the line changes.

@MrMooky
Copy link
Author

MrMooky commented Jun 28, 2017

Sounds like it can be done, good. But creating a plugin for charts.js is not my kind of expertise. Do people with the proper skills check around here and pick an idea to create plugins, or should I ask somewhere else for this?

@etimberg
Copy link
Member

Someone might look here. Maybe asking on StackOverflow might get you somewhere too

@etimberg etimberg added this to the Version 3.1 milestone Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants