Documentation Is:
I need to give 3 different colors as gradient color in the background in the "line chart". These colors should be based on the values.
120 to 200: green color
60 yo 120 : blue color
0 to 60: Orange color.
also when no value with data above 120 is given as parameter green color should not be displayed.
I have attached the image.
Thanks,
@vinayaknk there is a sample in master for something similar to this: https://github.com/chartjs/Chart.js/blob/master/samples/advanced/line-gradient.html
displayed: https://www.chartjs.org/samples/master/advanced/line-gradient.html
I created a plugin to ease the pain: https://github.com/kurkle/chartjs-plugin-gradient :)
I think with the plugin, we can call this working.
Most helpful comment
I created a plugin to ease the pain: https://github.com/kurkle/chartjs-plugin-gradient :)