Bug description

Hi All I am using superset 4.1.1 In dashboard, if I try to download the chart by Image (Download as Image), it is not working. But download by CSV is working fine. please refer the image below

Image

Also

I try to down dashboard by PDF or Image is also not working, please refer the image below

Image

Please let me know, if these are not working, how to hide these options.

Thanks Nagaraj M M

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.

Comment From: dosubot[bot]

The "Download as Image" and "Download as PDF" features in Superset dashboards rely on frontend components that capture screenshots or generate PDFs of the dashboard. If these options aren't working, it's often due to issues in the screenshot generation process or missing backend support. The code includes error handling and will show a toast message if something goes wrong during the download attempt (source, source, source).

If you want to hide these options as a workaround, you can use custom CSS. Inspect the dashboard menu using your browser's developer tools to find the CSS selectors for the "Download as Image" and "Download as PDF" menu items. Then, create a custom CSS template in Superset with something like:

/* Replace these selectors with the actual ones from your dashboard */
.ant-dropdown-menu-item[title="Download as Image"],
.ant-dropdown-menu-item[title="Download as PDF"] {
  display: none !important;
}

You can apply this CSS globally by editing the GlobalStyles component in superset-frontend/src/GlobalStyles.tsx (reference). This will hide the menu items for all users.

If you need more help finding the exact selectors, let me know!

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

Comment From: rusackas

Can you give us more details besides "not working"? Do you see any errors in the browser or the server logs?

I suspect the bot is right that Superset is not configured to work correctly. Did you want to get it to work, or find a way to disable it? Those are two different things :)