GitHub user richardfogaca edited a discussion: Embed code option on dashboard charts
## Contribution Summary This change adds an "Embed code" option to the chart sharing menu in Superset. Users can now easily get the iframe code to embed individual charts in other websites. ## How It Works **UI**: The "Embed code" option appears in the chart's share menu, next to "Copy permalink" and "Share by email". **Technical Details**: - Uses existing `EmbedCodeContent` component - Works with Superset's permalink system ## Screenshot <img width="735" alt="Screenshot 2025-04-14 at 13 17 28" src="https://github.com/user-attachments/assets/7f5e37cf-fcbf-4b3d-b4fb-a5f5fcfb3586" /> <img width="398" alt="Screenshot 2025-04-14 at 13 17 35" src="https://github.com/user-attachments/assets/7d96837a-97f1-479d-8a42-66827584d04f" /> ## Fork with working prototype The implementation is available in this fork: [Superset Fork](https://github.com/richardfogaca/superset/tree/embed-code-option-on-dashboard-charts) ## Why This Matters 1. **Better Sharing**: Users can embed charts in other websites or apps. 2. **Easy to Use**: Simple interface for getting embed code. 3. **Standard Implementation**: Uses standard iframe embedding, works with modern websites. 4. **Maintainable**: Built on existing Superset code, easy to update. GitHub link: https://github.com/apache/superset/discussions/33123 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
