-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export to PDF leaves charts empty on first export #27532
Comments
Same issue for me, with the 4.0.1 version of superset. |
I also face exact same issue (4.0.1) |
Same problem, but worst:
Is this using the webdriver component? If yes, perhaps it is not waiting long enough to take the screenshot. |
@hanslemm i think this is the issue. I don't know which technology they use to generate the pdf. But it may be just a option to force the rendering of all the page and not only the visible part. |
Similar problem with embedded dashboard. But when we export dashboard from superset (not embedded), pdf is saving correctly. In addition (maybe it can help) - if you will try to scroll embedded dashboard quicky, you will see a loading logo by a millisecond before chart renders. It seems like charts that are out of screen are unloading. UPDATE: I have debugged it - there is DASHBOARD_VIRTUALIZATION feature flag. If it is True, charts out of screen are removing from DOM. I set it False and export embedded dashboard now is working correctly. Maybe it would be right if all charts will be loaded back before exporting to pdf? |
We suspect that this might be resolved in the current 4.1 release candidate. Please test and vote accordingly! Let me know if you need help with that, and make sure you subscribe to the [email protected] mailing list (just send an email to [email protected]) |
@rusackas could this fix also get implemented within the When my users try to print their page via the browser functionality, the same issue occurs where any chart outside of the viewport doesn't get rendered but displays the "loading" status instead. |
hello, I'm testing witht the latest dev code, the issue is still present, there is no guarantee that all the charts of a dashboard are being sent to the pdf generation module. BTW, is it possible to have Apache Superset generate the pdf on the server side? |
Bug description
When using the new Export to PDF functionality, we get a mostly empty PDF on the first try. Second export usually works fine. If we refresh the page - same issues reappear: first export is empty, second is fine.
The issue does not seem to impact Big Number and Table charts. But everything else: Pie Charts, Bar Charts, Area Charts, seem to be impacted.
How to reproduce the bug
Screenshots/recordings
First click on Export to PDF:
Second click on Export to PDF:
Superset version
3.1.1
Python version
3.10
Node version
Not applicable
Browser
Safari
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: