Chartjs-PrimeNg Pie Chart – By default show all tooltip?

0👍

According to this, you need to pass it intersect as false. By default it’s true.

Try updating your config like this:

this.options = {
  onAnimationComplete: function() {
    this.showTooltip(this.segments, true);
  },

  tooltipEvents: [],

  tooltips: {
    intersect: false
  },

  showTooltips: true,
  title: {
    display: true,
    text: 'My Title',
    fontSize: 16
  },
  legend: {
    position: 'bottom'
  }
}

Leave a comment