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>
Source:stackexchange.com