Chart.js Canvas Change Label Color January 05, 2024 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 postsCss Grid : How Auto Placement Algorithm WorksHow Do I Make Slide In On Click Of Div?Jquery - Changing Styles And Displaying Certain ElementsHow Can I Use The Css Pseudo-element :before{ Content: '' } To Affect An Element? Post a Comment for "Chart.js Canvas Change Label Color"
Post a Comment for "Chart.js Canvas Change Label Color"