9951 explained code solutions for 126 technologies


chart.jsSet X axis title (label)


new Chart('chart', {
  // ...
  options: { scales: { x: { title: { text: 'X Title', display: true } } } }
});ctrl + c
'chart'

id of canvas element

'X Title'

sets this title for X axis