[Chartjs]-How to add font family to Chart.js V3.7.0

5๐Ÿ‘

โœ…

For global use: Chart.defaults.font.family = "Lato".
Details here.

2๐Ÿ‘

The correct way to specify would be like this (in options):

plugins: { // not plugin
  legend: { // extra layer: legend
    labels: { // with an "s"
      font: {
        family: "Lato" // right here
      }
    }
  }
}

Leave a comment