Chart.js colored regions in Area Chart #11822
Unanswered
KarimLeexz
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can do this quite easy with gradient: https://www.youtube.com/watch?v=e-15uzfcd-I&ab_channel=ChartJS If you understand what is being done here and apply it to the above video you should get there: https://www.youtube.com/watch?v=ZGaKfMB6laY&t=156s&ab_channel=ChartJS But I will make a separate video for your specific case soon. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to fill my area chart between two certain lines. I want my graph to have colored regions between two y-axis values that I set, without the color exceeding the graph/line itself. Here's an example:
I tried different approaches like creating custom datasets like so:
All of the solutions I tried didnt work tho.
Here's a stackoverflow post which used Chart.js 2.x that got it to work:
"Chart.js shaded regions" - Stack Overflow
If you got anything to help me I'd appreciate it! Thanks. :)
Beta Was this translation helpful? Give feedback.
All reactions