Chartjs-How to change colour of specific xAxis label in charts js

0๐Ÿ‘

โœ…

So you do this with "pointLabels", took a bit of finding TBH ;-).
EG:

options: {
  legend: {
           display: false,
       },
    scale: {
       pointLabels: {
         display: true,
         fontColor: [
                    'rgba(95, 31, 34, 0.1)', 
                    'rgba(95, 31, 34, 0.1)', 
                    'rgba(95, 31, 34, 0.1)', 
                    'rgba(241, 78, 86, 1)', 
                    'rgba(95, 31, 34, 0.1)', 
                    'rgba(95, 31, 34, 0.1)'
                    ],
       },
       ticks: {
          display: false,
       },
    }
 }                   

Leave a comment