dosubot[bot] commented on issue #34830: URL: https://github.com/apache/superset/issues/34830#issuecomment-3217120477
<!-- Greeting --> Hi @JonathanAhrenkiel-Frellsen! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> The embedded dashboard uses the same grid layout and chart sizing logic as the native Superset dashboard view. Chart sizes are determined by the dashboard's saved layout metadata and grid configuration, with chart width and height calculated based on grid units, column widths, and the parent container's dimensions. The embedDashboard SDK does not provide explicit controls for chart sizing or layout beyond hiding UI elements and passing URL parameters like `standalone=1`—these do not affect the grid or chart sizes themselves[^1][^2]. Any differences in chart sizing or layout between the embedded and native dashboards are most likely due to the outer iframe or container sizing, or CSS constraints set by the embedding application, not by Superset's internal rendering logic[^2][^3]. To ensure the embedded dashboard matches the original layout, set explicit width and height attributes on the iframe and make sure the parent container matches the dimensions of the native dashboard view[^4]. Also, check for any CSS rules in your embedding app that might affect the iframe or its contents. Recent improvements allow you to pass theme configuration to the embedded dashboard for visual consistency, but this does not control chart sizing or grid layout[^5][^6]. [^1]: [superset-embedded-sdk/src/index.ts](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-embedded-sdk/src/index.ts) [^2]: [superset-frontend/src/embedded/index.tsx](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/embedded/index.tsx) [^3]: [superset-frontend/src/dashboard/components/gridComponents/ChartHolder.tsx](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/components/gridComponents/ChartHolder.tsx) [^4]: [PR #30032 - HTML Embedding of Dashboards and Charts](https://github.com/apache/superset/pull/30032) [^5]: [PR #34273 - Embedded dashboard theming system](https://github.com/apache/superset/pull/34273) [^6]: [PR #31590 - setThemeConfig method in embedDashboard](https://github.com/apache/superset/pull/31590) <!-- 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/2f677004-0adc-4c45-96a6-558e26407b73?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/2f677004-0adc-4c45-96a6-558e26407b73?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/2f677004-0adc-4c45-96a6-558e26407b73?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/2f677004-0adc-4c45-96a6-558e26407b73?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/2f677004-0adc-4c45-96a6-558e26407b73?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/2f677004-0adc-4c45-96a6-558e26407b73?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/2f677004-0adc-4c45-96a6-558e26407b73?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](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/issues/34830) -- 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-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org