Hi, I have a few charts-donuts on the site. Some of them have negative values.
I normally have 4 colors: light blue, darker blue, navy blue and green. But when the last value is negative, the color should be orange. I do not know how to do i. It so that the automatic color changes when the value is negative (also legends)
this is my code, but unfortunately the chart is not shown but maybe someone can tell me without it?
https://jsfiddle.net/kmartynak/5fret3g2/1/
to the legend, I have a loop in sass. That's why I automatically add four colors, but not when the value is negative ...
Thank you very much.