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