You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dashboard download cuts off charts in exported PDF/PNG for large dashboards #31158
When exporting a dashboard with a high number of charts (e.g., 33 charts) as a PDF or PNG, the exported file does not include all charts. In one example, only the first 24 charts are visible in the downloaded file, and the last visible chart is partially cut off. In another attempt, not all the charts appear in the export but no partial charts are showing.
Repro steps:
Make sure the following feature flags are on: DASHBOARD_VIRTUALIZATION, ENABLE_DASHBOARD_SCREENSHOT_ENDPOINTS, ENABLE_DASHBOARD_DOWNLOAD_WEBDRIVER_SCREENSHOT
Open a dashboard with a large number of charts (e.g., 33 charts, predominantly table and pivot table charts).
Make most of the tables full width and ensure the dashboard layout requires scrolling to see the charts
Export the dashboard as a PDF or PNG
Expected: The exported file should include all charts present in the dashboard, fully visible and not cut off.
Current: Export doesn't contain all charts or has cut off charts.
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
I have searched Superset docs and Slack and didn't find a solution to my problem.
I have searched the GitHub issue tracker and didn't find a similar bug report.
I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Only developers assigned by a Bounty Program Manager should start working on this issue to win the bounty.
Be sure to follow the guide closely to avoid any delays in payment. Please, allow a few days after your PR has been merged for the bounty to be released.
Hi @DachiCharkviani have you joined our bounty program? This issue is going out as a bounty and I don't see you in the program yet. Feel free to join as we have a bunch more issues up for grab!
Hello, sure, let me know if you need additional details.
It works fine on small dashboards, and the generated pdf is cutoff on dashboards that require scrolling.
The pdf with the screenshot endpoint disabled is in vertical format and all pages are present.
The pdf with the screenshot endpoint feature flags enabled seems to be in horizontal format, only the first page is downloaded, and the last visible chart is cutoff
superset version: 4.1.1
Enabled feature flags:
ALERT_REPORT_SLACK_V2
ALERT_REPORTS
ALERTS_ATTACH_REPORTS
ALLOW_ADHOC_SUBQUERY
DASHBOARD_NATIVE_FILTERS
DASHBOARD_VIRTUALIZATION (tried both ON and OFF)
DASHBOARD_RBAC
DRILL_BY
DRILL_TO_DETAIL
EMBEDDABLE_CHARTS
EMBEDDED_SUPERSET
ENABLE_DASHBOARD_SCREENSHOT_ENDPOINTS
ENABLE_DASHBOARD_DOWNLOAD_WEBDRIVER_SCREENSHOT
ENABLE_JAVASCRIPT_CONTROLS
ENABLE_TEMPLATE_PROCESSING
HORIZONTAL_FILTER_BAR
SLACK_ENABLE_AVATARS
TAGGING_SYSTEM
THUMBNAILS
THUMBNAILS_SQLA_LISTENERS
Deployed on Kubernetes via the helm chart (version 0.13.4)
I've also run into this issue on Superset 4.1.2 and 5.0.0. It affects both manual dashboard downloads and scheduled/emailed reports and both pdf and png file types. When emailing reports I have tried it with Ignore cache when generating report enabled and disabled. This is more noticeable with the emailed reports because it seems that rather than loading only a portion of the report and screenshotting the loading icon for the remainder, only a blank image/pdf is sent.
For the 4.1.2 instance: Playwright is not enabled and the browser is chromium (for emailed reports).
For the 5.0.0. instance: Playwright is enabled, chromium is installed as the headless browser, and DASHBOARD_VIRTUALIZATION has been tried both enabled and disabled without a difference.
When manually downloading the reports, only those charts currently on screen, or those slightly beyond, include their data, the remainder appear with the loading icon.
When emailing reports, a blank pdf or image is sent; there are not even placeholders for the charts.
It takes about 20 seconds for the dashboard I tested this with to load when manually opened; when the scheduled report runs, it also takes about 20 seconds to execute (21 seconds, to be exact; based on the logs), so it seems to be waiting long enough to load the dashboard.
I have attempted to discern if opening the dashboard impacts the emailed reports and this doesn't appear to be the case, unless the cache is not ignored.
On the same instances displaying this behavior, if you email a smaller report, e.g. a single chart, the pdf/image are generated as expected.
PS - I looked at all of the issues listed in #31158 (comment) and it seems all are reporting a similar issue, but this seems to be the most recently active.
Hello, @tahvane1 I have same problem with 6.0.0rc2
To me this seems to be the "other problem" with "normal" chart download (it is just not working). Issues with dashboard downloads are separate thing and are due to playwright scripts issues
Activity
DachiCharkviani commentedon Nov 26, 2024
Hello, I would like to work on this issue.
geido commentedon Nov 28, 2024
🎉 Preset Bounty Available: $250 USD 🎉
To claim this bounty, please carefully follow the steps below.
📋 Steps to Participate
Review Guidelines:
Read through the Preset Bounty Program Contribution Guide for complete details on bounty requirements.
Show Your Interest:
Complete the Preset Bounty Program Survey and comment this issue to express your interest.
Join the Slack Channel:
After completing the survey, you’ll receive an invitation to the dedicated Apache Superset Slack channel.
Get Assigned:
To officially start, ensure a Bounty Program Manager has assigned you to this issue.
Submit Your Solution:
When ready, submit your solution with the
Fixes #{issue_number}notation in your Pull Request description.Claim Your Bounty:
Sign up at GitPay.me and submit your solution via: https://gitpay.me/#/task/987
💡 Additional Notes
Good luck, and happy coding! 🎉
alexandrusoare commentedon Nov 28, 2024
Hello, I am interested on working on this
geido commentedon Nov 28, 2024
Hi @DachiCharkviani have you joined our bounty program? This issue is going out as a bounty and I don't see you in the program yet. Feel free to join as we have a bunch more issues up for grab!
geido commentedon Dec 6, 2024
Currently holding on this as we could not reproduce the issue
OOub commentedon Dec 10, 2024
I'm running into the same issue for large dashboards.
geido commentedon Dec 10, 2024
Hello @OOub it would be great if you could provide some repro steps as we are having hard times reproducing this issue. Thanks!
OOub commentedon Dec 10, 2024
Hello, sure, let me know if you need additional details.
It works fine on small dashboards, and the generated pdf is cutoff on dashboards that require scrolling.
The pdf with the screenshot endpoint disabled is in vertical format and all pages are present.
The pdf with the screenshot endpoint feature flags enabled seems to be in horizontal format, only the first page is downloaded, and the last visible chart is cutoff
Enabled feature flags:
Deployed on Kubernetes via the helm chart (version 0.13.4)
Maissacrement commentedon Dec 20, 2024
I'm interresed too
OOub commentedon Dec 20, 2024
Managed to solve my issue by using firefox instead of chrome as the webdriver in my custom docker image. Hope this helps
5 remaining items
f-teyssier commentedon Aug 19, 2025
Hi, nothing new on this one ?
I have the same issue on Superset 4.1.3 with playwright firefox:
Le PDF Misc Charts-1.pdf
I have tried a lot of combinations with this but it's only effective on png export, not pdf. Here is my conf file:
lilotter45 commentedon Sep 2, 2025
I've also run into this issue on Superset 4.1.2 and 5.0.0. It affects both manual dashboard downloads and scheduled/emailed reports and both pdf and png file types. When emailing reports I have tried it with
Ignore cache when generating reportenabled and disabled. This is more noticeable with the emailed reports because it seems that rather than loading only a portion of the report and screenshotting the loading icon for the remainder, only a blank image/pdf is sent.DASHBOARD_VIRTUALIZATIONhas been tried both enabled and disabled without a difference.PS - I looked at all of the issues listed in #31158 (comment) and it seems all are reporting a similar issue, but this seems to be the most recently active.
tahvane1 commentedon Sep 13, 2025
I did some more troubleshooting and If I take 5.0 branch export works okay. If I take 6.0 export is cut.
aukfood commentedon Sep 23, 2025
Hello, @tahvane1 I have same problem with 6.0.0rc2
tahvane1 commentedon Sep 29, 2025
I think I know now how to fix dashboard export. Could you assign this to me?
tahvane1 commentedon Oct 1, 2025
@geido ?
tahvane1 commentedon Oct 2, 2025
To me this seems to be the "other problem" with "normal" chart download (it is just not working). Issues with dashboard downloads are separate thing and are due to playwright scripts issues
geido commentedon Oct 3, 2025
We are looking into this
tahvane1 commentedon Oct 5, 2025
#35491 will fix Chart download