GitHub user dosubot[bot] added a comment to 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 my name [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/0d592639-a0f0-4466-b0c0-a6111e0a4dfe?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/0d592639-a0f0-4466-b0c0-a6111e0a4dfe?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/0d592639-a0f0-4466-b0c0-a6111e0a4dfe?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/0d592639-a0f0-4466-b0c0-a6111e0a4dfe?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0d592639-a0f0-4466-b0c0-a6111e0a4dfe?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/0d592639-a0f0-4466-b0c0-a6111e0a4dfe?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0d592639-a0f0-4466-b0c0-a6111e0a4dfe?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/33574) 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-unsubscr...@superset.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org