I am having a problem understanding the documentation of the ChartJS. I would like my values to be outside of the chart visible not in the tooltip but I am having problems understanding how to create chart configuration object. Someone had the same question on the StackOwerflow that didn't help me: Display values outside of pie chart in chartjs
In short I want this: but now I have this:
I am using Angular's ng2-charts and ChartsJS version 3.3.2
Here is my chart config:
public pieChartOptions: ChartConfiguration['options'] = {
responsive: true,
plugins: [
legend: {
display: true,
position: 'top',
},
]
}
The similar problems I have found online (ChartJs - Pie Chart - how to remove labels that are on the pie chart) proposed to add datalabels and outlabels config to plugins but I can't add this property as it's not recognized.
Plugins section of ChartJS documentation wasn't helpful (https://www.chartjs.org/docs/latest/developers/plugins.html) or maybe I didn't know where to look.
Anyone can help me figure this out?
Thank you