I am using Chartjs & Paged.js to print pages.
Everything is fine but when I call this code, the charts disappear:
let flow = paged.preview().then((flow) => {
console.log("Rendered", flow.total, "pages.");
});
Are these two packages not getting along?


I found a solution to this after help by the good people at https://pagedjs.org/
Add this to your
<head>-tag:Now in your
body, add the following Paged.js extension:The key is adding your chart code/calls to generate charts to the
afterRenderedmethod.It works perfectly with both
Chart.jsandamcharts5.