Chart.js Canvas Change Label Color December 01, 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 postsOn Click - Make @html.displayfor An Editable Text FieldTogglebutton For Google HtmlserviceHow To Disable Right Click, F12(debug) And Ctrl+s In Asp.net Application Using Javascript Or JqueryClick() Works Fine In Chrome But Not In Ie11 Post a Comment for "Chart.js Canvas Change Label Color"
Post a Comment for "Chart.js Canvas Change Label Color"