Chart.js
Chart.js copied to clipboard
How to apply gradient on the opposite side of the Line chart?
Feature Proposal
I can only apply the gradient below the line.
Currently the Line chart looks like this:
What is the expected behavior?
The gradient appears on the opposite side of the line, meaning from the line to the top of the chart.
And I want to make the gradient like this:
(so it appears where I have drawn white lines, so it is inverted in relation to the line)
Possible Implementation
No response
You can specify the fill as an object and set the above property: https://www.chartjs.org/docs/4.4.3/charts/area.html#example-with-multiple-colors