2808 explained code solutions for 75 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