dosubot[bot] commented on issue #37490:
URL: https://github.com/apache/superset/issues/37490#issuecomment-3805468773

   <!-- Greeting -->
   Hi @martin2mra! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.
   
   <!-- Answer -->
   This is a known issue: exporting charts as images works in Chrome and Edge 
but often fails or produces incomplete images in Firefox due to how the 
underlying dom-to-image-more library interacts with Firefox's rendering and 
canvas APIs. There is no Firefox-specific handling in Superset's export code, 
so the problem is likely a browser compatibility issue with the DOM 
snapshotting process used for image export. 
   
   For dashboards, maintainers recommend enabling the Playwright screenshots 
feature flag, which is more reliable for image export in Firefox. For 
individual charts, especially ECharts-based ones like bar charts, the export 
should use ECharts' own API and not be limited by the DOM viewport, but issues 
can still occur if the chart container is not fully rendered or visible when 
the export is triggered. Adjusting the chart or dashboard size, or using a 
Chromium-based browser, may help as a workaround for now. More details and 
related discussions can be found 
[here](https://github.com/apache/superset/issues/31863) and 
[here](https://github.com/apache/superset/discussions/31753).
   
   If you need a more robust solution, keep an eye on upcoming releases or 
consider using the Playwright screenshot feature for dashboard exports.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/4da01685-7f45-486e-b9a4-a435fa1d5ec4?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/4da01685-7f45-486e-b9a4-a435fa1d5ec4?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/4da01685-7f45-486e-b9a4-a435fa1d5ec4?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/4da01685-7f45-486e-b9a4-a435fa1d5ec4?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/4da01685-7f45-486e-b9a4-a435fa1d5ec4?feedback_type=hallucination)
 | [Report 
šŸ›](https://app.dosu.dev/response-feedback/4da01685-7f45-486e-b9a4-a435fa1d5ec4?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/4da01685-7f45-486e-b9a4-a435fa1d5ec4?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20a%20known%20issue%3A%20exporting%20charts%20as%20images%20works%20in%20Chrome%20and%20Edge%20but%20often%20fails%20or%20produces%20incomplete%20images%20in%20Firefox%20due%20to%20how%20the%20underlying%20dom-to-image-more%20library%20interacts%20with%20Firefox%27s%20rendering%20and%20canvas%20APIs.%20There%20is%20no%20Firefox-specific%20handling%20in%20Superset%27s%20export%20code%2C%20so%20the%20problem%20is%20likely%20a%20browser%20compatibility%20issue%20with%20the%20DOM%20snapshotting%20process%20used%20for%20image%20export.%20%0A%0AFor%20dashboards%2C%20maintainers%20recommend%20enabling%20the%20Playwright%20screenshots%20feature%20flag%2C%20which%20is%20more%20reliable%20for%20image%20export%20in%20Firefox.%20For%20individual%20ch
 
arts%2C%20especially%20ECharts-based%20ones%20like%20bar%20charts%2C%20the%20export%20should%20use%20ECharts%27%20own%20API%20and%20not%20be%20limited%20by%20the%20DOM%20viewport%2C%20but%20issues%20can%20still%20occur%20if%20the%20chart%20container%20is%20not%20fully%20rendered%20or%20visible%20when%20the%20export%20is%20triggered.%20Adjusting%20the%20chart%20or%20dashboard%20size%2C%20or%20using%20a%20Chromium-based%20browser%2C%20may%20help%20as%20a%20workaround%20for%20now.%20More%20details%20and%20related%20discussions%20can%20be%20found%20%5Bhere%5D%28https%3A//github.com/apache/superset/issues/31863%29%20and%20%5Bhere%5D%28https%3A//github.com/apache/superset/discussions/31753%29.%0A%0AIf%20you%20need%20a%20more%20robust%20solution%2C%20keep%20an%20eye%20on%20upcoming%20releases%20or%20consider%20using%20the%20Playwright%20screenshot%20feature%20for%20dashboard%20exports.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](htt
 ps://go.dosu.dev/discord-bot)&nbsp;[![Share on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37490)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to