Chartjs-How to extends a Chart and register it

0👍

You have to specify the id of the custom controller

DoughnutRoundedController.id = 'doughnutRounded';

// According to the docs it is suggested to set the defaults of your custom controller to the base controller
// This shouldn't be the problem, but I am merely pointing it out.
DoughnutRoundedController.defaults = ChartJS.DoughnutController.defaults;

ChartJS.Chart.register(DoughnutRoundedController);

Leave a comment