[Chartjs]-How to Increase the label font size and decrease the size of my pie using chart.js?

3👍

I don’t know whether you looked the documentations on chart.js anyway here I’m posting some ideas that you are looking for.

  options: {
        legend: {
            display: true,
            labels: {
                fontColor: 'rgb(255, 99, 132)'
            }
        }
}

for enhancement please look at this

0👍

You can add this:

options: {
    **maintainAspectRatio : true**, // make the pie small
     legend: {
        display: true,
        labels: {
              **fontSize: 15** //change the size of the labels
        }
    }

}

good luck

Leave a comment