-
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
Problem Exporting Charts as Image #28713
Comments
Hello @CharlesNkdl, I'm here to help you with the issue you're facing. I'm a bot that can assist you with bug resolution, answer your questions, and guide you to become a contributor. Let's work together to get this sorted out. To resolve the issue of exporting charts as blank images from multiple dashboards in Apache Superset version 4.0.1, you need to ensure that the charts are fully loaded before initiating the export process. The provided code snippet shows the Here is the relevant part of the code: const handleBulkChartExport = (chartsToExport: Chart[]) => {
const ids = chartsToExport.map(({ id }) => id);
handleResourceExport('chart', ids, () => {
setPreparingExport(false);
});
setPreparingExport(true);
}; To ensure that charts are fully loaded before exporting, you might need to add a check to confirm that the charts are rendered and ready. This can be done by verifying the loading state and ensuring that the charts are not in a loading state before calling the Here is an example of how you might modify the function to include such a check: const handleBulkChartExport = (chartsToExport: Chart[]) => {
if (loading) {
addDangerToast(t('Charts are still loading. Please wait until all charts are fully loaded before exporting.'));
return;
}
const ids = chartsToExport.map(({ id }) => id);
handleResourceExport('chart', ids, () => {
setPreparingExport(false);
});
setPreparingExport(true);
}; This modification ensures that the export process is only initiated when the charts are fully loaded, preventing the issue of exporting blank images [1].
|
@CharlesNkdl Which browser are you using? I am also facing this problem in the Firefox browser, but when I use Chrome, it's working well. |
Seems to be an issue in Safari too. |
@visharavana I'm using Firefox. The solution was so simple i just didn't thought of it, i'm kind of embarassed, thank you ! I tried on Microsoft Edge and it worked Maybe due to firefox and safari not being chromium-based, compared to Chrome and Edge |
It is wrong not to display a chart if it is not in the browser window display range. When we download the dashboard as a picture, we find that some charts are not displayed apache#28713
Bug description
Hi Superset Community,
I have a problem exporting Charts as Image, from multiple Dashboards and instance of Superset.
How to reproduce the bug
Screenshots/recordings
Here is the result for my charts :
I was wondering if maybe this was related to the fact that the query is quite complicated a lot of filters in the dashboard so i tried to export another charts from the examples datasets.
Not quite right too...
Superset version
4.0.1
Python version
3.10
Node version
Not applicable
Browser
Firefox
Additional context
I use Apache Superset 4.0.1 in Local using Windows and a WSL Backend, but this problem was also on my prod. env with Apache Superset 4.0.0 used with Cloudron which handles the deployment.
Even if template processing is ON, i can't download image, with or without Jinja Templating in them.
Here are my superset_config.py flags in local :
Here is my python stack trace, minus the get and post request :
The text was updated successfully, but these errors were encountered: