9951 explained code solutions for 126 technologies


chart.jsSet Y axis title (label)


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

id of canvas element

'Y Title'

sets this title for Y axis