Chartjs-Why Primefaces donutChart is not working?

0👍

The problem is the import for DonutChartModel. You’re picking up the older version used for p:chart components. For the Charts.js based components the correct package name is:
org.primefaces.model.charts.donut.DonutChartModel

Slightly off topic, the bean also needs annotating. e.g. @Named and @RequestScoped.

Leave a comment