i'm creating a pie chart using ChartJs in my in agular app and i'm having problems displaying a label on the pie chart i
I've installed the 3rd part libary npm i chart.js-plugin-labels-dv
and i've done the necesary setting
this.chart = new Chart('charts', {
options:{
plugins:{
labels:{
}
}
}
})
as seen in the documentation but i keep getting this error
Type '{ labels: {}; }' is not assignable to type '_DeepPartialObject<PluginOptionsByType<keyof ChartTypeRegistry>>'.
Object literal may only specify known properties, and 'labels' does not exist in type '_DeepPartialObject<PluginOptionsByType<keyof ChartTypeRegistry>>'.
pls can anyone help out