GitHub user gotham-create created a discussion: Custom JavaScript Controls
Missing in ECharts and Mixed Charts - Superset 6.0.0rc2
1. Description
The "Custom Code" and "JavaScript" sections, which allow users to inject custom
logic or formatting into ECharts-based visualizations (including Mixed Charts),
are completely missing from the Customize panel. This occurs even when the
necessary Feature Flags are enabled in the backend.
2. Current vs. Expected Behavior
Current: When selecting an ECharts visualization (e.g., Mixed Chart, Pie,
Bar), the user only sees standard UI toggles. There is no text area for custom
JavaScript or data interceptors.
Expected: Under the "Advanced" or "Custom" section of the Customize tab, a
JavaScript editor should be available to manipulate chart options via code.
3. Configuration and Context
The environment is explicitly configured to allow JavaScript, yet the UI does
not reflect these settings:
Feature Flag: ENABLE_JAVASCRIPT_CONTROLS: True is set in superset_config.py.
Comparison: The deck.gl plugins correctly show their JavaScript data
interceptor boxes, confirming that the Feature Flag is recognized by the
system, but is failing specifically for the ECharts plugin suite.
4. Steps to Reproduce
Set ENABLE_JAVASCRIPT_CONTROLS = True in the configuration.
Restart Superset 6.0.0rc2.
Create a "Mixed Chart" or any ECharts-based chart.
Navigate to the Customize tab.
Search for any "Custom JS" or "JavaScript" input area.
Result: No such fields are available in the properties panel.
5. Technical Analysis
This appears to be a regression in the metadata definition of the ECharts
plugins for version 6.0.0rc2. While the global flag is active, the individual
control panels for ECharts are not being injected into the DOM, or they are
being filtered out by a security check that differs from the one used by
deck.gl.
Environment
Superset Version: 6.0.0rc2
Plugins Affected: All ECharts (Pie, Bar, Line, Mixed Chart).
Browser: Chrome/Firefox (verified in Incognito).
Can someone guide me? I'm lost.
GitHub link: https://github.com/apache/superset/discussions/37369
----
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]