GitHub user dosubot[bot] added a comment to the discussion: Custom JavaScript Controls Missing in ECharts and Mixed Charts - Superset 6.0.0rc2
<!-- Greeting --> Hi @gotham-create! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> The missing "Custom Code" and "JavaScript" controls in ECharts-based charts are not due to a feature flag or security filter—they are simply not defined in the ECharts plugin control panel configuration. Even with ENABLE_JAVASCRIPT_CONTROLS enabled, these controls only appear for plugins (like deck.gl) that explicitly register them in their control panel metadata. ECharts plugins (including Mixed Chart, Pie, Bar, etc.) do not include any JavaScript editor or custom code controls in their configuration, so the UI never renders these fields, regardless of your settings. This is not a regression in the sense of a removed feature; rather, ECharts plugins have never supported these controls in their metadata, unlike deck.gl plugins, which do define and wire up custom JS controls in their "Advanced" section [source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Arc/controlPanel.ts#L40-L143) . If you need this feature, it would require adding the appropriate JavaScript control definitions to the ECharts plugin control panel files (for example, in `superset-frontend/plugins/plugin-chart-echarts/src/controls.tsx`). There is no evidence of an official roadmap or recent changes to add this support for ECharts plugins. <!-- 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/3d25b45c-fc5f-4f88-a83c-377f4a5de322?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/3d25b45c-fc5f-4f88-a83c-377f4a5de322?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/3d25b45c-fc5f-4f88-a83c-377f4a5de322?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/3d25b45c-fc5f-4f88-a83c-377f4a5de322?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3d25b45c-fc5f-4f88-a83c-377f4a5de322?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/3d25b45c-fc5f-4f88-a83c-377f4a5de322?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3d25b45c-fc5f-4f88-a83c-377f4a5de322?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=The%20missing%20%22Custom%20Code%22%20and%20%22JavaScript%22%20controls%20in%20ECharts-based%20charts%20are%20not%20due%20to%20a%20feature%20flag%20or%20security%20filter%E2%80%94they%20are%20simply%20not%20defined%20in%20the%20ECharts%20plugin%20control%20panel%20configuration.%20Even%20with%20ENABLE_JAVASCRIPT_CONTROLS%20enabled%2C%20these%20controls%20only%20appear%20for%20plugins%20%28like%20deck.gl%29%20that%20explicitly%20register%20them%20in%20their%20control%20panel%20metadata.%20ECharts%20plugins%20%28including%20Mixed%20Chart%2C%20Pie%2C%20Bar%2C%20etc.%29%20do%20not%20include%20any%20JavaScript%20editor%20or%20custom%20code%20controls%20in%20their%20configuration%2C%20so%20the%20UI%20never%20renders%20these%20fields%2C%20regardless%20of%20y our%20settings.%20This%20is%20not%20a%20regression%20in%20the%20sense%20of%20a%20removed%20feature%3B%20rather%2C%20ECharts%20plugins%20have%20never%20supported%20these%20controls%20in%20their%20metadata%2C%20unlike%20deck.gl%20plugins%2C%20which%20do%20define%20and%20wire%20up%20custom%20JS%20controls%20in%20their%20%22Advanced%22%20section%20%5Bsource%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/legacy-preset-chart-deckgl/src/layers/Arc/controlPanel.ts%23L40-L143%29.%0A%0AIf%20you%20need%20this%20feature%2C%20it%20would%20require%20adding%20the%20appropriate%20JavaScript%20control%20definitions%20to%20the%20ECharts%20plugin%20control%20panel%20files%20%28for%20example%2C%20in%20%60superset-frontend/plugins/plugin-chart-echarts/src/controls.tsx%60%29.%20There%20is%20no%20evidence%20of%20an%20official%20roadmap%20or%20recent%20changes%20to%20add%20this%20support%20for%20ECharts%20plugins.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/37369) GitHub link: https://github.com/apache/superset/discussions/37369#discussioncomment-15574048 ---- 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]
