embed chart #42887
Replies: 1 comment 2 replies
|
Superset's official embedded SDK and guest-token system only support dashboard embedding — there's no dedicated chart-embed feature with its own config. However, you can embed a single chart using the Explore URL with Simplest approach — iframe with <iframe src="https://your-superset-url/explore/?slice_id=<CHART_ID>&standalone=1"></iframe>This doesn't require any special feature flags or config changes, but the user viewing the iframe must be logged in to Superset (or have a valid session). If you need unauthenticated / guest access, the workaround is to create a dashboard containing just that one chart and use the official embedding flow. In that case you'd need these settings in FEATURE_FLAGS = {
"EMBEDDED_SUPERSET": True,
}
# CSP: allow your host app to iframe Superset
TALISMAN_ENABLED = True
TALISMAN_CONFIG = {
"content_security_policy": {
"frame-ancestors": ["'self'", "https://your-app.example.com"],
# ... other directives
}
}Then use the TL;DR: For a quick chart embed with logged-in users, just use the iframe + To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Uh oh!
There was an error while loading. Please reload this page.
i want to embed only a chart made in superset5 , what do i have to allow in config
@dosu
All reactions