score:0

Plugins need an ID to function as stated in the error message so chart.js knows where to get the options from for example so your plugin should look like this:

Chart.register({
  id: 'customPluginName',
  beforeDraw: (chart, args, opts) => {
    // Actual plugin code
  }
})

Related Query

More Query from same tag