Open Arkkimaagi opened 4 months ago
On simpler cases just setting the fill color and origin might be enough, but most flexible would be with a similar coloring than states.
https://www.chartjs.org/docs/latest/charts/area.html#example-with-multiple-colors
If I understood correctly based on a forum post, this card might use chart.js to render the charts.
I'd love if we could color line segments based on some criteria, so I could avoid having to color a separate timeline below the line segment.
Currently I do it with this config:
To me it seems that chart.js supports line segment coloring, so could there be a way to color the line based on similar rules?
https://www.chartjs.org/docs/latest/samples/line/segments.html