score:6

Accepted answer

In V3 they introduced a font object instead of separate propperties so you will have to put it like this:

r: {
  pointLabels: {
    font: {
      size: 100
    }
  }
}

Example:

var options = {
  type: 'radar',
  data: {
    labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
    datasets: [{
      label: '# of Votes',
      data: [12, 19, 3, 5, 2, 3],
      borderWidth: 1
    }]
  },
  options: {
    scales: {
      r: {
        pointLabels: {
          font: {
            size: 100
          }
        }
      }
    }
  }
}

var ctx = document.getElementById('chartJSContainer').getContext('2d');
new Chart(ctx, options);
<body>
  <canvas id="chartJSContainer" width="600" height="400"></canvas>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.2.0/chart.js"></script>
</body>

Font documentation: https://www.chartjs.org/docs/latest/general/fonts.html


Related Query