Chart.js Canvas Change Label Color October 29, 2022 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 color Copy In your case: chartOptions = { responsive: true, maintainAspectRatio: false, fontColor: 'red', options:{ legend:{ labels:{ fontColor:'white';//change the color } } } }; Copy Share You may like these postsInline-block Div With And Without Text Not Vertically AlignedHow To Position Div Within Document Flow After Absolute Div Nested Within Relative Div?Using Bootstrap, How Can I Create Multiple Fullscreen Div's To Stack On One AnotherTrying To Set The Size Of A Span As A Percentage Of Size Of Contents Post a Comment for "Chart.js Canvas Change Label Color"
Post a Comment for "Chart.js Canvas Change Label Color"