score:0

Accepted answer

my coworker figured it out. you just need to add this to the options array:

plugins: {
   datalabels: {
      display: function(context) {
         return context.dataset.data[context.dataindex] > 0; // only return if greater than zero
      }
   }
}

here's how it ends up looking:

enter image description here


Related Query