Chartjs-How to display icon arc of doughnut chart with primeVue

0👍

chartjs-plugin-labels is for legacy versions of Chart.js. Use chartjs-plugin-datalabels for Chart.js 3 or newer.

The PrimeVue Chart component has a plugins property that receives an array of Chart.js plugins to use:

<script setup>
import ChartDataLabels from 'chartjs-plugin-datalabels'
const plugins = [ChartDataLabels]
⋮
</script>

<template>
  <Chart :plugins="plugins" ⋯ />
</template>

demo

Leave a comment