You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "amoljagadale-max (via GitHub)" <gi...@apache.org> on 2025/12/22 12:52:31 UTC

[I] UI/UX, Theming, Chart Extension, and Mobile Export Limitations in Apache Superset [superset]

amoljagadale-max opened a new issue, #36794:
URL: https://github.com/apache/superset/issues/36794

   ## Screenshot
   
   <img width="1920" height="1833" alt="Image" src="https://github.com/user-attachments/assets/0b6ad2e9-e9de-46cf-8edf-33b2b7e324e6" />
   
   <img width="1540" height="797" alt="Image" src="https://github.com/user-attachments/assets/18d5abc8-1afc-4002-b7bf-255d71425e01" />
   
   <img width="1016" height="526" alt="Image" src="https://github.com/user-attachments/assets/10837400-4d75-4664-9e0e-d779121f653b" />
   
   [score card - GE - EN.pdf](https://github.com/user-attachments/files/24291558/score.card.-.GE.-.EN.pdf)
   
   
   ---
   
   ## Description
   
   I am facing multiple UI/UX and export-related limitations while working with **Apache Superset**, specifically when trying to:
   
   * Reproduce a **Figma-based dashboard design**
   * Apply **Ant Design themes**
   * Extend **ECharts capabilities**
   * Export **mobile-friendly PNG/PDF reports via email**
   
   Despite trying various supported and suggested approaches, I am unable to achieve the expected results. Below are the detailed issues.
   
   ---
   
   ### Issue 1: Unable to Reproduce Figma Dashboard UI/UX (Layout & Styling Limitations)
   
   I tried to closely match the dashboard UI/UX as defined in Figma, but due to Superset’s layout and styling constraints, I am unable to reproduce it accurately.
   
   What I’ve tried:
   
   * Nested **rows and columns**
   * **Markdown / Text components** for layout structuring
   * Adjusting chart sizes, padding, and spacing
   * Applying **global CSS overrides** for dashboard background, chart cards, and containers
   
   Observed behavior:
   
   * Dashboard and chart cards always render with a **plain white appearance**
   * CSS changes for:
   
     * Background colors
     * Card coloring
     * Section grouping
       either do not apply or apply inconsistently
   * Fine-grained control (pixel-perfect alignment, grouped visual sections, rich card UI) similar to Figma seems very difficult or not achievable
   
   **Question:**
   Are these UI/UX limitations expected by design in Superset, or is there a recommended approach to build **design-heavy dashboards**?
   
   ---
   
   ### Issue 2: Ant Design Theme Configuration Has No Impact on Dashboards
   
   I attempted to customize the UI using **Ant Design themes** generated from the Ant Theme Editor:
   
   [https://ant.design/theme-editor](https://ant.design/theme-editor)
   
   Steps taken:
   
   * Generated Ant Design theme tokens
   * Applied the theme configuration in Superset
   * Verified that Superset internally uses Ant Design
   
   Observed behavior:
   
   * No visible changes on dashboards or charts
   * No impact on:
   
     * Colors
     * Typography
     * Spacing
     * Card appearance
   
   **Questions:**
   
   * Do Ant Design themes apply:
   
     * Per dashboard?
     * Per chart?
     * Only at application/template level?
   * Are Ant themes expected to affect dashboard visuals at all, or only core UI elements (menus, buttons, filters)?
   
   Currently, it appears Ant Design theming does **not** influence dashboard UI in a meaningful way.
   
   ---
   
   ### Issue 3: Limited ECharts & iFrame Embedding Errors
   
   https://echarts.apache.org/examples/en/index.html#chart-type-funnel
   
   Superset provides a limited set of built-in ECharts. To extend this, I attempted to embed custom ECharts using **iFrames inside Markdown**, based on community and GPT suggestions.
   
   I modified `config.py` with the following settings:
   
   ```python
   # ---- ENABLE IFRAME IN MARKDOWN ----
   ALLOW_IFRAME = True
   ENABLE_JINJA_TEMPLATING = True
   
   HTML_SANITIZATION = True
   HTML_SANITIZATION_SCHEMA_EXTENSIONS = {
       "tagNames": ["iframe"],
       "attributes": {
           "iframe": [
               "src",
               "width",
               "height",
               "style",
               "frameborder",
               "allow",
               "allowfullscreen"
           ]
       }
   }
   
   TALISMAN_ENABLED = False
   ```
   
   Observed behavior:
   
   * Dashboards fail to render properly
   * iFrames are still blocked or error out
   * Security / sanitization-related errors appear (screenshots attached)
   
   **Questions:**
   
   * Is embedding custom ECharts via iFrame officially supported?
   * Are additional CSP or security settings required?
   * What is the recommended way to extend ECharts beyond Superset’s built-in options?
   
   ---
   
   ### Issue 4: Dashboard Export (Email Reports) Not Mobile-Friendly & Limited to Viewport
   
   I am also facing major limitations with **PNG / PDF exports via Email Reports**, especially for **mobile consumption**.
   
   #### Observed issues
   
   1. **Minimum width limitation (~600px)**
   
      * Exported PNGs/PDFs appear to have a minimum width of ~600px
      * Reports are hard to read on mobile devices
      * Mobile-first dashboard layouts are not respected in exports
   
   2. **Blank / dead space in exported images**
   
      * When chart data occupies a smaller area, exported images still reserve large empty space
      * Results in poor visual density and wasted screen space
   
   3. **Only current viewport is captured**
   
      * If the dashboard is scrollable:
   
        * Only the visible viewport is captured
        * Content below the fold is missing in exports
   
   4. **No responsive scaling for mobile**
   
      * Exports reuse desktop layout
      * No reflow or scaling based on device size
   
   ---
   
   #### Expected behavior
   
   Ideally, we are looking for:
   
   * Ability to export the **entire scrollable dashboard**
   * Control over export **width, height, resolution, or scaling**
   * Better handling of:
   
     * Auto-sizing charts
     * Removing unused blank space
   * Support or best practices for **mobile-friendly email reports**
   
   ---
   
   #### Questions
   
   * Is there any supported way to:
   
     * Export the **full dashboard**, not just the visible viewport?
     * Configure export resolution or viewport size?
   * Are there configuration flags related to:
   
     * Screenshot dimensions
     * Mobile-friendly rendering
   * Are these limitations known and expected with the current export engine?
   
   ---
   
   ## Design input
   
   I would appreciate guidance from:
   
   * **Superset core contributors** (platform capabilities & limitations)
   * **UI/UX or design contributors** (what is realistically achievable)
   
   Specifically, I’m looking for clarity on:
   
   * Whether **pixel-perfect Figma replication** is feasible in Superset
   * The real scope of **Ant Design theming**
   * Supported approaches to:
   
     * Rich UI dashboards
     * Custom ECharts
     * Mobile-friendly exports
   
   If needed, this can be treated as a **design review or design suggestion**.
   
   Thank you for your time and guidance.
   


-- 
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] UI/UX, Theming, Chart Extension, and Mobile Export Limitations in Apache Superset [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #36794: UI/UX, Theming, Chart Extension, and Mobile Export Limitations in Apache Superset
URL: https://github.com/apache/superset/issues/36794


-- 
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] UI/UX, Theming, Chart Extension, and Mobile Export Limitations in Apache Superset [superset]

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

   That's a lot of ground to cover in one issue... might it make sense to break them up into multiple Issues?


-- 
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] UI/UX, Theming, Chart Extension, and Mobile Export Limitations in Apache Superset [superset]

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

   **Issue 1:**
   
   The white appearance of dashboards can be modified using the following CSS scripts ([...] > Theme & CSS):
   
   `.dashboard-content {background-color: #652365;}
   .grid-container {background-color: #757575;}`
   
   This module, combined with the Themes (Settings > Themes) allows to customize, to a certain extent, the UI, the dashboards and even the charts.
   
   Indeed, the placement of charts, text blocks... must extend in width to a multiple of specific divisions (in a grid of 12 columns). They can, however, be adjusted to the pixel in height.
   
   As for the "deck.gl Polygon" graphics, "GeoJSON"... their customization was more advanced in version 5.0.0 than in 6.0.0 (color of borders, padding...).
   
   **Issue 2:**
   The Theme configuration acts perfectly on the UI. 
   Regarding dashboards and charts in dashboards, I use the CSS module.
   By the way, I also have the same difficulties as you in applying the customization "Chart-Specific Overrides" and "Global ECharts Overrides" ([Read](https://superset.apache.org/docs/configuration/theming/))
   
   **Issue 4:**
   For the reports (PDF and PNG), the screenshots are indeed limited in the range from 600 to 2400 px width. I use Playwright to improve thier generation. 
   The report includes all the dashboards at my place, even if it can be scrolled on the screen.
   If your report contains tabs, make sure to enable the FEATURE_FLAGS: {"ALERT_REPORT_TABS": True} in your superset_config.py to print each tab on a page in the same PDF report.


-- 
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] UI/UX, Theming, Chart Extension, and Mobile Export Limitations in Apache Superset [superset]

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

   <!-- Greeting -->
   Hi @amoljagadale-max! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
   
   <!-- Answer -->
   Superset's dashboard layout and styling are intentionally constrained by its architecture, so pixel-perfect replication of Figma designs or highly custom UI/UX is not feasible—layout is managed by a grid system and chart slices, and fine-grained CSS or grouping is limited and often inconsistent. While you can try advanced CSS overrides, these are best-effort and may break with updates or not apply as expected due to the way components are rendered and styled [[source]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/components/Dashboard.jsx) [[source]](https://github.com/apache/superset/issues/32820).
   
   Ant Design theming in Superset primarily affects core UI elements like navigation, menus, and buttons, not dashboard or chart card visuals. Even with per-dashboard theme assignment and the theme editor, changes to colors, typography, or spacing will not significantly impact dashboard content or chart appearance [[source]](https://github.com/apache/superset/discussions/34647) [[source]](https://github.com/apache/superset/discussions/35532).
   
   For ECharts, customization is limited to what is exposed in the chart editor and JSON metadata. Some appearance tweaks (like axis label font size or colors) may be possible via JSON, but support is inconsistent and depends on chart type and Superset/ECharts version. Embedding custom ECharts via iFrame in Markdown is not officially supported and is often blocked by security/sanitization settings; the recommended way to embed dashboards is via the Embedded SDK with guest tokens, which does not allow arbitrary chart extension via iFrame [[source]](https://github.com/apache/superset/discussions/33127) [[source]](https://github.com/apache/superset/issues/36377).
   
   Exporting dashboards (PNG/PDF/email) is limited to the visible viewport and desktop layout—there is no built-in support for exporting the full scrollable dashboard, controlling export dimensions, or generating mobile-friendly/responsive exports. Configuration options exist for WebDriver timeouts and device scale factor, but not for mobile rendering or blank space removal. These are known and expected limitations of the current export engine [[source]](https://github.com/apache/superset/discussions/31432).
   
   In summary: Superset is designed for data exploration and BI, not for pixel-perfect UI or mobile-first exports. For richer UI, experiment with advanced CSS selectors and JSON metadata, but expect limitations. For embedding and theming, use the official SDK and theme editor, but know their scope is mostly core UI, not dashboard visuals. For exports, current limitations are by design and not easily worked around.
   
   
   <!-- 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/6dff462c-f10d-4a94-9f08-c407dcefe204?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/6dff462c-f10d-4a94-9f08-c407dcefe204?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/6dff462c-f10d-4a94-9f08-c407dcefe204?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/6dff462c-f10d-4a94-9f08-c407dcefe204?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/6dff462c-f10d-4a94-9f08-c407dcefe204?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/6dff462c-f10d-4a94-9f08-c407dcefe204?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/6dff462c-f10d-4a94-9f08-c407dcefe204?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=Superset%27s%20dashboard%20layout%20and%20styling%20are%20intentionally%20constrained%20by%20its%20architecture%2C%20so%20pixel-perfect%20replication%20of%20Figma%20designs%20or%20highly%20custom%20UI/UX%20is%20not%20feasible%E2%80%94layout%20is%20managed%20by%20a%20grid%20system%20and%20chart%20slices%2C%20and%20fine-grained%20CSS%20or%20grouping%20is%20limited%20and%20often%20inconsistent.%20While%20you%20can%20try%20advanced%20CSS%20overrides%2C%20these%20are%20best-effort%20and%20may%20break%20with%20updates%20or%20not%20apply%20as%20expected%20due%20to%20the%20way%20components%20are%20rendered%20and%20styled%20%5B%5Bsource%5D%5D%28https%3A//github.com/apache/superset/blob/master/superset-frontend/src/dashboard/components/Dashboard.jsx%29%20%5B
 %5Bsource%5D%5D%28https%3A//github.com/apache/superset/issues/32820%29.%0A%0AAnt%20Design%20theming%20in%20Superset%20primarily%20affects%20core%20UI%20elements%20like%20navigation%2C%20menus%2C%20and%20buttons%2C%20not%20dashboard%20or%20chart%20card%20visuals.%20Even%20with%20per-dashboard%20theme%20assignment%20and%20the%20theme%20editor%2C%20changes%20to%20colors%2C%20typography%2C%20or%20spacing%20will%20not%20significantly%20impact%20dashboard%20content%20or%20chart%20appearance%20%5B%5Bsource%5D%5D%28https%3A//github.com/apache/superset/discussions/34647%29%20%5B%5Bsource%5D%5D%28https%3A//github.com/apache/superset/discussions/35532%29.%0A%0AFor%20ECharts%2C%20customization%20is%20limited%20to%20what%20is%20exposed%20in%20the%20chart%20editor%20and%20JSON%20metadata.%20Some%20appearance%20tweaks%20%28like%20axis%20label%20font%20size%20or%20colors%29%20may%20be%20possible%20via%20JSON%2C%20but%20support%20is%20inconsistent%20and%20depends%20on%20chart%20type%20and%20Superset
 /ECharts%20version.%20Embedding%20custom%20ECharts%20via%20iFrame%20in%20Markdown%20is%20not%20officially%20supported%20and%20is%20often%20blocked%20by%20security/sanitization%20settings%3B%20the%20recommended%20way%20to%20embed%20dashboards%20is%20via%20the%20Embedded%20SDK%20with%20guest%20tokens%2C%20which%20does%20not%20allow%20arbitrary%20chart%20extension%20via%20iFrame%20%5B%5Bsource%5D%5D%28https%3A//github.com/apache/superset/discussions/33127%29%20%5B%5Bsource%5D%5D%28https%3A//github.com/apache/superset/issues/36377%29.%0A%0AExporting%20dashboards%20%28PNG/PDF/email%29%20is%20limited%20to%20the%20visible%20viewport%20and%20desktop%20layout%E2%80%94there%20is%20no%20built-in%20support%20for%20exporting%20the%20full%20scrollable%20dashboard%2C%20controlling%20export%20dimensions%2C%20or%20generating%20mobile-friendly/responsive%20exports.%20Configuration%20options%20exist%20for%20WebDriver%20timeouts%20and%20device%20scale%20factor%2C%20but%20not%20for%20mobile%20rendering%
 20or%20blank%20space%20removal.%20These%20are%20known%20and%20expected%20limitations%20of%20the%20current%20export%20engine%20%5B%5Bsource%5D%5D%28https%3A//github.com/apache/superset/discussions/31432%29.%0A%0AIn%20summary%3A%20Superset%20is%20designed%20for%20data%20exploration%20and%20BI%2C%20not%20for%20pixel-perfect%20UI%20or%20mobile-first%20exports.%20For%20richer%20UI%2C%20experiment%20with%20advanced%20CSS%20selectors%20and%20JSON%20metadata%2C%20but%20expect%20limitations.%20For%20embedding%20and%20theming%2C%20use%20the%20official%20SDK%20and%20theme%20editor%2C%20but%20know%20their%20scope%20is%20mostly%20core%20UI%2C%20not%20dashboard%20visuals.%20For%20exports%2C%20current%20limitations%20are%20by%20design%20and%20not%20easily%20worked%20around.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://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/36794)


-- 
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] UI/UX, Theming, Chart Extension, and Mobile Export Limitations in Apache Superset [superset]

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

   This covers several unrelated topics in one issue, which makes it hard to track. Closing in favor of splitting into individual, focused issues (with repro cases). Please open those and we'll dig into each one.


-- 
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] UI/UX, Theming, Chart Extension, and Mobile Export Limitations in Apache Superset [superset]

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

   **issue 3:**
   
   The iframes are displayed correctly at my place via the "Text/Markdown" module. Everything can be iframed if I authorize it via the CSP rules.
   
   I use the same sanitization as you. 
   
   TALISMAN_ENABLED = False is good for testing but for production, it will be necessary to better secure the elements that can be displayed by Superset (CSP). 
   
   On the other hand, I do not know the configuration variables ALLOW_IFRAME and ENABLE_JINJA_TEMPLATING. For version 6.0.0, I use the feature flags {"CSS_TEMPLATES": True}, {"ESCAPE_MARKDOWN_HTML": False}
   
   ([Read](https://github.com/apache/superset/blob/6.0.0/superset/config.py))


-- 
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