Printing on Firefox give empty graphs on pages>1

I’m trying to print a document via Firefox, and the graph on the first page shows up fine:

However, the other pages show up all empty, e.g.:

I’m not sure if this issue is related to this one, but setting preserveDrawingBuffer: true for firefox as suggested on the link there didn’t work.

In Chrome and Safari, it works (but there are issues with the size of the graph, as discussed in this issue.

Does anyone have an experience or knows how to solve this?

edit: This issue is very strange. Some more information:

  • if I use “landscape” on the print, all the graphs show up normally!
  • I cannot reproduce the error in a simple codepen example. If I print the frame with the page, the graphs on the 3 pages show up correctly, even in portrait mode.