Chartjs-Adding a line break in Chart.js (2.7.2) labels section

0👍

It is because you add the object to a String. A solution could be

chartData.labels.push(job.job_type + '<br>Sample Size ' + sampleS );

or

chartData.labels.push(job.job_type + br.outerHTML + 'Sample Size ' + sampleS );

Leave a comment