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

Fill chart with different colors based on intervals #56

Open
corinat opened this issue Sep 7, 2016 · 2 comments
Open

Fill chart with different colors based on intervals #56

corinat opened this issue Sep 7, 2016 · 2 comments

Comments

@corinat
Copy link

corinat commented Sep 7, 2016

Hello,

Has anyone tried to fill the chart with different colors based on some values? Something like this? http://plnkr.co/edit/73RgBkbrml6CBA143FCf?p=preview
If anyone could give some hints where I should do some changes, it would be much appreciated.

@MrMufflon
Copy link
Owner

I think the graph would need to be rendered in pieces, for each color. This would be mayor changes to the code.

@HugoHeneault
Copy link

I might try something here if one of my clients confirms he's wanting it. Might take awhile but here's what I would do :

Calculate intervals (might be forced if needed, then fill the background with a linear gradient, as seen on:
https://stackoverflow.com/questions/17053043/create-a-svg-rectangle-filled-with-different-background-color-by-percentage-or-p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants