Chartjs-How to give break line in data label

0👍

Inside the animation.onComplete() function, you can reverse() the labels array, then draw individual tokens using forEach() as follows:

label.reverse().forEach((l, i) => ctx.fillText(l, bar._model.x, bar._model.y - (i * 16)))

Please have a look at your amended JSFiddle

Leave a comment