1

is there a way for chartjs to do conditional formatting for it's line and area fill charts? basically if values are above a certain threshold, turn the line color to red(or another) vs a different color when values are bellow the given threshold. after looking around I found that AmCharts which does exactly that. Problem is I already have so many charts in my project done using chartjs am wondering if there could be a way of doing it in chartjs as well, rather than have AmCharts as additional resource to load.

any help would be appreciated

crispy_potatoes
  • 345
  • 1
  • 3
  • 7
  • solved. it was previously asked [here](https://stackoverflow.com/questions/36916867/chart-js-line-different-fill-color-for-negative-point) – crispy_potatoes Aug 26 '20 at 22:42

0 Answers0