Chartjs-How to set Solid label in bar chart using Chart JS

1👍

One way is to do it is showing label without necessarily having ‘mouseover’. This can be done with options onAnimationComplete and tooltipevents.

Just pass empty array to tooltips, like below:

var options = {
  tooltipTemplate: "<%= value %>",

  showTooltips: true,

  onAnimationComplete: function() {
    this.showTooltip(this.datasets[0].points, true);
  },
  tooltipEvents: []
}

I hope this at least gives you an idea to proceed.

Leave a comment