I am having problems with registering a plugin in Primevue Chart (https://www.primefaces.org/primevue/showcase-v2/#/chart)
Based on the documentation from Chart.js I need to register the plugin first (https://www.chartjs.org/docs/latest/dev ... ng-plugins)
Eg:
Code: Select all
var chart1 = new Chart(ctx, {
plugins: [plugin]
});
Code: Select all
options: {
plugins: {
...my...plugin...settings...here...
As an example I would like to register the following plugin: https://www.npmjs.com/package/chartjs-plugin-crosshair
Thanks for any help.