Inside the options.animation.onComplete callback function, you draw the text using ctx.fillText(...). Simply don't draw the text in case the value is zero.

To do so, you should add an if statement as follows:

if ([i] > 0) {
  ctx.fillText([i], model.x, model.y + ([i] / max * ((chartHeight / 2) - 50)));

In case the values are defined as strings as your question could suggest, the if statement may have to be changed slightly (i.e if ([i] != '0') {).

Related Query

More Query from same tag