Chart.js Canvas Change Label Color September 03, 2023 Post a Comment Got chart defined in html: Solution 1: You can change the font color of legend" s="" label,="" in="" the="" following="" way="" ...="" ts="" set<="" p="">chartOptions.options.legend.labels.fontColor= 'white'; //set your desired colorCopyIn your case:chartOptions = { responsive: true, maintainAspectRatio: false, fontColor: 'red', options:{ legend:{ labels:{ fontColor:'white';//change the color } } } }; Copy Share You may like these postsHow To Set 'auto' Height In Jquery AnimateHow Do I Make An Element Disappear And Reappear When Scrolling Down?Different Display Value For Selecte Text Using Select2.jsWhy Doesn't The Google Maps Tutorial Work On My Pc? Post a Comment for "Chart.js Canvas Change Label Color"
Post a Comment for "Chart.js Canvas Change Label Color"