[Chartjs]-Why the main and axis title does not show in chart.js

3👍

First of all don’t use an array for your X scales, all the scales need to be defined as objects. Second you are placing the options in the wrong part, it has to be configured in the title namespace like so:

scales: {
  y: {
    title: {
      display: true,
      text: 'yTitle'
    }
  },
 x: {
    title: {
      display: true,
      text: 'xTitle'
    }
  }
}

Leave a comment