ECharts options overrides in themes: How to target specific chart instance #36851
Replies: 2 comments
-
|
Superset’s theme system only supports ECharts options overrides globally ( There’s a CSS workaround for visual tweaks: you can use dashboard CSS to target a chart by its chart ID (e.g., For advanced or per-instance ECharts customizations, you’d need to modify the frontend code (e.g., chart plugin files like If you want to explore further or propose a feature, check out the theming docs and related discussions. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
That's an interesting idea but i don't think we have this capability yet in the theme configuration. Bot is correct about using dashboard css as a workaround for now. I'd imagine a feature like |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I’m looking into using ECharts options overrides in Superset via Theme system and I’d like to clarify the scope at which these overrides can be applied.
From the documentation and code, I see that Superset supports these two tokens, which allow customizing ECharts configuration via global or dashboard-specific themes:
echartsOptionsOverrides- globally for all ECharts visualizationsechartsOptionsOverridesByChartType- per chart type (e.g.TimeSeriesChart)However, a single dashboard can contain multiple instances of the same chart type (for example, several
TimeSeriescharts with different datasets).My question is:
Is it possible to target a specific chart instance with ECharts option overrides, or are overrides limited to global and per-chart-type scope only? Can overrides be applied based on a chart’s slice ID, chart ID, or dashboard-specific context or is the intended design that ECharts overrides apply uniformly to all charts of a given type?
This is particularly important because not all ECharts options are currently exposed through the “Edit chart” UI. In some cases, fine-grained visual or behavioral adjustments are only possible via direct ECharts configuration, which makes instance-level overrides very desirable.
If per-instance overrides are not currently supported:
Is there a recommended workaround?
Has there been any discussion or roadmap consideration for adding instance-level overrides?
Thanks in advance! @mistercrunch @rusackas @msyavuz
Beta Was this translation helpful? Give feedback.
All reactions