You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 03:18:58 UTC
Re: [D] REST API Endpoint for Downloading Superset Charts in CSV/Excel Format [superset]
GitHub user dosubot[bot] edited a comment on the discussion: REST API Endpoint for Downloading Superset Charts in CSV/Excel Format
<!-- Answer -->
It is not currently possible to download an image of a Superset chart using a REST API endpoint. The "Download as image" feature in Superset is implemented entirely on the frontend: it uses the browser to capture a screenshot of the chart's DOM element via the `downloadAsImage` function, which leverages the `dom-to-image-more` library. There is no documented or supported backend API endpoint for image export.
When you use the "Download as image" option in the Superset UI for table or pivot table charts, the image will only include the portion of the chart that is visible in the browser viewport at the time of capture. If the table or pivot table is scrollable or uses virtualized rendering for large datasets, the image will not include rows or columns that are outside the visible area—you will get a screenshot of what you see on screen, not the entire dataset. There is no built-in mechanism to automatically expand or scroll the table to capture the full content in the image. For full data export, use the CSV or Excel download options instead.
References:
- [downloadAsImage implementation](https://github.com/apache/superset/blob/c09f8f6f7665e503a376926700fa815add6892ca/superset-frontend/src/utils/downloadAsImage.ts)
- [Discussion of image capture behavior](https://github.com/apache/superset/blob/c09f8f6f7665e503a376926700fa815add6892ca/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx)
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=0d592639-a0f0-4466-b0c0-a6111e0a4dfe) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/33574#discussioncomment-13339381
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org