Have converted a number of charts over from the older version and re-implemented them with the new Chart.js components. Am really pleased with the charts themselves but when I try to print them and/or create a PDF from them, nothing seems to work.
Using p:printer on a chart produces a complete blank and printing, for instance, a panel containing a chart prints the surrounding components but again nothing at all of the chart.
Have tried different solutions, mentioned by others, mostly based on exportAsImage but cannot get these to function at all. I even tried a direct copy of the Chart.js Export code from the Showcase but that also fails with 'TypeError: PF(...).exportAsImage is not a function' in FireFox, and very similar descriptions in other browsers.
Can anyone suggest a simple and reliable way to print charts? Have been struggling with this for quite a while and whilst I may be missing something very simple, it seems a strange omission from what is otherwise some very impressive functionality.
UI Components for JSF
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 13 guests