Chart.js Canvas Change Label Color May 25, 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 postsPrototypejs Get Value Of Each InputSet A Default File Name/directory For Upload On Web Form By Modifying The HtmlReplace Html Form On Submit With JqueryGet The Full Path Of All Files Of Some Types From A Html File And Put Them Into An Array Using Js/jquery Post a Comment for "Chart.js Canvas Change Label Color"
Post a Comment for "Chart.js Canvas Change Label Color"