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);
- Chartjs-Is there a way to pass rendered variables from pug templates to client side JS files?
- Chartjs-What's an efficient process for passing PHP arrays to to populate multiple ChartJS graphs?
Source:stackexchange.com