primefaceschart.js

PrimeFaces chart changes between 12 and 14


I am trying to upgrade from PrimeFaces 12 to PrimeFaces 14. Chart data is deprecated in version 12, inside my bar chart model I am using chart data. Any suggestions with rewrite in this scenario.

I am trying to use bardata and trying to rewrite my model class. I want to see if this is a better approach before proceeding. Also, would like to know any easy and reliable solution.


Solution

  • I don't fully understand what you mean with "chart data", but what you should do when upgrading PrimeFaces is follow the migration guides. It shows you all breaking changes between each version.

    For the data model you can simply check the documentation. Check chart, not charts as it is deprecated since 15.

    See also: