Skip to content Skip to sidebar Skip to footer

Chart.js Canvas Change Label Color

Got chart defined in html:
chartOptions.options.legend.labels.fontColor= 'white'; //set your desired color

In your case:

chartOptions =  { 
    responsive: true, 
    maintainAspectRatio: false, 
    fontColor: 'red',
    options:{
        legend:{
            labels:{
                fontColor:'white';//change the color
            }
        }
    }
};

Post a Comment for "Chart.js Canvas Change Label Color"