Chart.js Canvas Change Label Color February 28, 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 postsDiv Not Showing Above Text BoxCreate A Shape With Pure CSSCenter Nav-pills On Page But Have Fixed PositionHow To Create A Pop-up Div On Mouse Over And Stay When Click Post a Comment for "Chart.js Canvas Change Label Color"
Post a Comment for "Chart.js Canvas Change Label Color"