1

enter image description here

front end

<td>
  <div class="p-col-8 ui-toolbar-group-right">

    <button pButton type="button" icon="pi pi-search" (click)="populate_charts()"></button>

  </div>
</td>

TS-File

this.pieOptions = {
  responsive: true,
  labels: {
    render: 'label'
  },


  legend: {
    position: 'right',

  },
  title: {
    display: true,
    text: 'sample chart',
    fontSize: 16
  },
}
Vivek Jain
  • 2,730
  • 6
  • 12
  • 27
Abdul
  • 23
  • 5

1 Answers1

1

PrimeNG charts are based on chart.js https://www.chartjs.org/docs/latest/

So basically you are looking for a solution for that. Luckely there is already a SO thread - the answer seems to be a bit more complex than just enabling one option though.

Chart.js v2: How to make tooltips always appear on pie chart?

cpc
  • 608
  • 6
  • 22
  • i need enable for all tooltips answer is not that complex.secondly can you help where to change the code as i am already using latest version of chart.js – Abdul Sep 20 '20 at 10:36