Accepted answer

This can be achieved by passing the label as an array of strings where each element represents a line, e.g.:

let labels = [
  'A', // normal label.
  ['First line', 'Second line', '...'] // multi-line label.

A working example:

new Chart(document.getElementById("chart"), {
  type: 'bar',
  data: {
    labels: ['A', ['Water', 'Heating'], 'C'],
    datasets: [{
      data: [1, 1, 1]
<script src=""></script>
<canvas id="chart"></canvas>

Related Query

More Query from same tag