[Chartjs]-Using Different Colors In a Chart
1👍 ✅ You have to loop to all the bars/points of your chart, check if the value is over 80 and set the color. Here is an example for the bar chart: var bars = barChart.datasets[0].bars; for(var i = 0; i < bars.length; i++) { if(bars[i].value > 80) { bars[i].fillColor = “rgba(255, 0, 0, 0.2)”; … Read more