GitHub user VasilijeBursac added a comment to the discussion: ECharts options 
overrides in themes: How to target specific chart instance

Thank you, @PALLAVIKHEDLE! This is something I was thinking about, too. Since 
the chart ID can be obtained by inspecting the HTML (checking the `id` of the 
chart’s container div) or by extracting the `sliceId` from the chart's URL, it 
should be quite convenient to target a specific chart directly in the theme 
JSON. Therefore, specifying it like this in the theme configuration JSON seems 
like a flexible approach: 

```
{
  "echartsOptionsOverridesBySliceId": {
    "146": {
      /* ECharts config only for chart (slice) 146 */
    },
    "233": {
      /* ECharts config only for chart (slice) 233 */
    }
  }
}
```

@msyavuz @rusackas @mistercrunch What are your thoughts on this?

GitHub link: 
https://github.com/apache/superset/discussions/36851#discussioncomment-15470919

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

Reply via email to