You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "MallikarjunaReddyN (via GitHub)" <gi...@apache.org> on 2026/05/26 06:55:48 UTC

[I] Other charts are overlapping with Table chart when downloading dashboard as image using "Download as Image" option [superset]

MallikarjunaReddyN opened a new issue, #40428:
URL: https://github.com/apache/superset/issues/40428

   ### Bug description
   
   Other charts overlap with the Table chart when downloading the dashboard using the "Download as Image" option.
   
   This issue occurs when:
   
   * The dashboard contains multiple chart types (such as Table, Pie, Bar, etc.).
   * The Table chart is positioned as the first chart in the dashboard.
   * The Table chart contains scrollable content.
   
   
   ### Screenshots/recordings
   
   Actual dashboard:
   <img width="1920" height="998" alt="Image" src="https://github.com/user-attachments/assets/3fb9cf98-7fd2-495f-9e02-64f021650088" />
   
   Image after download:
   <img width="1233" height="1274" alt="Image" src="https://github.com/user-attachments/assets/e808ac05-a62c-4a6a-93fa-d8b51e9ec4d1" />
   
   ### Superset version
   
   6.0.0
   
   ### Python version
   
   3.11
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [x] 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.


-- 
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: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Other charts are overlapping with Table chart when downloading dashboard as image using "Download as Image" option [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #40428:
URL: https://github.com/apache/superset/issues/40428#issuecomment-5548542009

   That's the right direction - sync the cloned chart holder's height to the table's expanded scrollHeight before domToImage, not just toggling overflow. Go for it.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Other charts are overlapping with Table chart when downloading dashboard as image using "Download as Image" option [superset]

Posted by "RehanIslam09 (via GitHub)" <gi...@apache.org>.
RehanIslam09 commented on issue #40428:
URL: https://github.com/apache/superset/issues/40428#issuecomment-4958963723

   Hi,
   
   I've been investigating this issue locally and wanted to share my findings to help move this toward a resolution. 
   
   I traced the root cause of the visual overlap directly to the `processCloneForVisibility()` function located in `superset-frontend/src/utils/downloadAsImage.tsx`.
   
   ### The Core Conflict
   
   Through isolated testing, I discovered that the overlap issue disappears entirely if I remove the broad `[style*="overflow"]` selector from `scrollableSelectors`. 
   
   However, simply removing or omitting this selector immediately reintroduces the regression that was originally resolved in PR #34233 ("ensure full table or handlebar chart is captured in image export"). When it is removed, table charts revert to exporting only the visible viewport rows rather than the entire dataset.
   
   ### Technical Approaches Evaluated
   
   To find a middle ground, I attempted several targeted adjustments to narrow the scope of the selector without breaking the fix from #34233. Unfortunately, none of these approaches successfully preserved both behaviors simultaneously:
   
   *   **Scoped Class Targeting:** Restricting the selector explicitly to `.superset-chart-table` or targeting only `role="presentation"` containers caused the table export to revert to copying only visible rows.
   *   **Dynamic Style Evaluation:** Swapping the string-based inline style match for an explicit `getComputedStyle()` check did not resolve the overlap behavior.
   *   **Lifecycle and Timing Adjustments:** Introducing a slight delay to allow for additional layout reflows prior to executing `domToImage.toJpeg()` yielded no change.
   *   **Regression History Analysis:** I audited the implementation against the original #34233 commit and subsequent PRs (such as #38927) to check for introduced side effects, but could not isolate a specific divergence.
   
   ### Key Observations
   
   1.  **Export Path Specificity:** The overlap reproduces exclusively on the standard clone-based export pipeline (`createEnhancedClone()` / `processCloneForVisibility()`). The AG Grid export pipeline remains unaffected.
   2.  **Container Mechanics:** While the actual scroll container for the table appears to be a `role="presentation"` element with `overflow: auto`, the full-table export relies on expanding multiple parent or ancestor elements matching the broad overflow criteria, rather than just the immediate scroll container itself.
   
   Because the full-table export and the visual overlap appear to be tightly coupled within the current architecture, resolving this cleanly will likely require a more nuanced approach than just modifying the selector query.
   
   ### Request for Context
   
   To help guide a proper fix, could anyone provide additional context on why PR #34233 intentionally targeted every element matching `[style*="overflow"]`? 
   
   I am curious if there was a specific deeply-nested DOM architecture or a particular browser-specific limitation that mandated such a broad dragnet at the time. Understanding that underlying constraint will be incredibly helpful in figuring out how to fix #40428 without regressing #34233.
   
   Thanks in advance for any insights!


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Other charts are overlapping with Table chart when downloading dashboard as image using "Download as Image" option [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #40428:
URL: https://github.com/apache/superset/issues/40428#issuecomment-4594844287

   Can you validate if this is also happening in 6.1?


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Other charts are overlapping with Table chart when downloading dashboard as image using "Download as Image" option [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #40428:
URL: https://github.com/apache/superset/issues/40428#issuecomment-4541396076

   <!-- Answer -->
   This is a known area that has received multiple fixes. The overlapping behavior during "Download as Image" has been traced to two root causes:
   
   1. **CSS box-sizing issue** — `.dashboard-component-chart-holder` elements default to `content-box` instead of `border-box`, causing their 32px padding to overflow the container and overlap neighboring charts. PRs [#36375](https://github.com/apache/superset/pull/36375) and [#38536](https://github.com/apache/superset/pull/38536) address this [[1]](https://github.com/apache/superset/issues/38709).
   
   2. **Scrollable Table content expanding during export** — PR [#34233](https://github.com/apache/superset/pull/34233) rewrote the image export utility to set `overflow: visible` and `height: auto` on scrollable containers so full table content is captured. However, this expansion can cause the Table chart's exported height to exceed its dashboard grid slot, pushing into or overlapping adjacent charts [[2]](https://github.com/apache/superset/pull/34233).
   
   Additionally, PR [#38781](https://github.com/apache/superset/pull/38781) (merged April 2026) specifically targets ag-grid table rendering in image exports — it switches to print layout during capture and preserves row/column dimensions to prevent overlapping [[3]](https://github.com/apache/superset/pull/38781).
   
   **Immediate workaround:** You can add this CSS override to your dashboard to fix the box-sizing issue:
   
   ```css
   .dashboard-component-chart-holder {
       box-sizing: border-box;
   }
   ```
   
   If you're on version 6.0.0, you may not have the latest export fixes from PRs #34233, #38781, or #38536. Upgrading to a more recent build that includes these patches should resolve the overlapping behavior during image download.
   
   
   <!-- 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).*
   
   ---
   
   Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).
   
   [![Leave Feedback](https://img.shields.io/badge/Leave%20Feedback-555555?style=flat)](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=39679ae0-a676-41b3-ad4b-e7d4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uNjE1MzIgNzguNTU2IDIxLjM4NDcgNzguNTU2IDM4LjM3MDFIOTIuNzUwNUM5Mi43NTA1IDEzLjU0NTMgNzIuNjI2IC02LjU3OTE5IDQ3LjgwMTMgLTYuNTc5MTlWNy42MTUzMlpNNDIuNTgwNSA3LjYxNTMySDQ3LjgwMTNWLTYuNTc5MTlINDIuNTgwNVY3LjYxNTMyWk00MC43MDQgNy42MTUzMkg0Mi41ODA1Vi02LjU3OTE5SDQwLjcwNFY3LjYxNTMyWiIgZmlsbD0iYmxhY2siIG1hc2s9InVybCgjZG9zdS1kLWN1dG91dCkiLz48cGF0aCBkPSJNNjguOTIxNSAzNi4wMTM1QzY4LjkyMTUgMzYuMDEzNSA2NS43MzY5IDQ5LjQ3MzggNTEuNDIzMSA0OS40NzM4QzM3LjEwOTMgNDkuNDczOCAzMi41Nzg3IDM3LjM1OTYgMzIuNTc4NyAzNi4wMTM1IiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjcuNjkxN
 jEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0wLjM0ODYzMyA4NS40OTQ2QzAuMzQ4NjMzIDg1LjQ5NDYgMjkuNDg1NiA4NS44MzA5IDM0LjgwOSA4NS42OThDNDQuODMzNyA4NS40NDc3IDUxLjI4NzIgODQuNDAyIDU3LjUyNjkgNzguOTcyNEM2Mi44MTI5IDc0LjM3MjcgNzUuMTM0MiA1OS42ODM2IDc1LjEzNDIgNTkuNjgzNiIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSI2LjE2NDgyIi8%2BPC9zdmc%2B)](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [![Share Dosu with your team](https://img.shields.io/badge/Share%20Dosu%20with%20your%20team-1f6feb?style=flat)](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=static-docs-share-team&utm_term=apache%2Fsuperset)


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Other charts are overlapping with Table chart when downloading dashboard as image using "Download as Image" option [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #40428:
URL: https://github.com/apache/superset/issues/40428#issuecomment-5220514624

   @RehanIslam09 dug into this a bit. Each chart holder's height in `ResizableContainer` is a fixed px value off the stored layout (`heightStep * heightMultiple`), not `fit-content`, so `overflow: visible` on the table paints outside that box without growing it or the row. That's why it overlaps instead of reflowing. A real fix probably means resizing the container to the table's expanded `scrollHeight` inside the clone, not just toggling overflow on the inner elements.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Other charts are overlapping with Table chart when downloading dashboard as image using "Download as Image" option [superset]

Posted by "RehanIslam09 (via GitHub)" <gi...@apache.org>.
RehanIslam09 commented on issue #40428:
URL: https://github.com/apache/superset/issues/40428#issuecomment-4955614538

   > Can you validate if this is also happening in 6.1?
   
   I tested this on the current master branch (6.1 development build) and can still reproduce the issue.
   
   The dashboard renders correctly in the browser, but after using Download as Image, the Table chart content overflows its container and is rendered underneath adjacent charts (Pie chart, Treemap, etc.), causing visual overlap.
   
   I tested using the Video Game Sales example dashboard with the Table chart positioned first and containing scrollable content
   
   <img width="1096" height="1314" alt="Image" src="https://github.com/user-attachments/assets/12a93b36-4b46-45c1-beb8-52731b7b3a62" />
   
   <img width="2083" height="1288" alt="Image" src="https://github.com/user-attachments/assets/dc040738-99a2-4ad7-a423-e1c73769ba1e" />
   
   Additional observation: I was not able to reproduce the issue when exporting the same dashboard as a PDF. The PDF export preserved the expected layout, and the overlap only occurred with Download as Image.
   
   Dashboard
   
   <img width="853" height="449" alt="Image" src="https://github.com/user-attachments/assets/6fb12915-6f09-4cd9-befd-7918109b2bed" />
   
   Exported as PDF ss : 
   
   <img width="848" height="451" alt="Image" src="https://github.com/user-attachments/assets/94e0bc76-91d3-4de1-8ffe-498d1042ad2f" />


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Other charts are overlapping with Table chart when downloading dashboard as image using "Download as Image" option [superset]

Posted by "RehanIslam09 (via GitHub)" <gi...@apache.org>.
RehanIslam09 commented on issue #40428:
URL: https://github.com/apache/superset/issues/40428#issuecomment-5249937502

   Thanks a lot for digging into this, that clarifies the behavior a lot.
   
   That does make a lot of sense, since the chart holder height is fixed from the dashboard layout, switching to `overflow: visible` only affects painting, not layout, so the table expands visually but the container (and row) doesn’t reflow.
   
   Based on this, I’m thinking the fix needs to happen at the clone stage by explicitly syncing the container height with the table’s expanded content. Something along the lines of:
   
   * Measure the table’s `scrollHeight` after applying the overflow adjustments
   * Propagate that height up to the corresponding `.dashboard-component-chart-holder` (and possibly its parent row containers) inside the cloned DOM
   * Ensure the layout reflows before calling `domToImage`
   
   This would preserve the full-table export behavior from #34233 while preventing overlap by actually resizing the layout instead of just allowing overflow.
   
   I’ll try prototyping this approach inside `processCloneForVisibility()` / `createEnhancedClone()` and see if I can get a stable result without breaking other chart types.
   
   Let me know if this direction aligns with what you had in mind or if there are constraints I should be aware of while working on this 
   


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Other charts are overlapping with Table chart when downloading dashboard as image using "Download as Image" option [superset]

Posted by "sadpandajoe (via GitHub)" <gi...@apache.org>.
sadpandajoe closed issue #40428: Other charts are overlapping with Table chart when downloading dashboard as image using "Download as Image" option
URL: https://github.com/apache/superset/issues/40428


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org