According to superset pull request it's possible to personalize the tooltip for geographic data using some JavaScript.
I've tried many things to get my point data to the tooltip, yet none of them work.
Where does Superset store the extra JS parameters?
The object.props.OwnData
referenced in this PR does not work
I've no idea where my extra parameters go into the JavaScript environment.
According to superset pull request it's possible to personalize the tooltip for geographic data using some JavaScript.
I've tried many things to get my point data to the tooltip, yet none of them work.
Where does Superset store the extra JS parameters?
The object.props.OwnData
referenced in this PR does not work https://github./apache/incubator-superset/pull/4173
I've no idea where my extra parameters go into the JavaScript environment.
Share Improve this question edited Oct 20, 2022 at 20:34 TylerH 21.1k79 gold badges79 silver badges114 bronze badges asked Feb 3, 2020 at 13:41 airliquideairliquide 5307 silver badges17 bronze badges 4- in my environment, this function is disabled. How to enable it. Please share. Thanks. – getitout Commented Apr 30, 2020 at 7:38
- add ENABLE_JAVASCRIPT_CONTROLS = True in you superset config file ;) – airliquide Commented May 18, 2020 at 12:50
- Thanks. I have tried add ENABLE_JAVASCRIPT_CONTROLS = True and restart superset, but still function disable. Wondering why. – getitout Commented May 21, 2020 at 10:47
- I had to enable it directly in superset/config.py in order for it to work. – Axel Øvrebø Harstad Commented Apr 5, 2022 at 14:02
2 Answers
Reset to default 4d => `test: ${d.object.extraProps.occupancy}`
works for me
To enable java script on superset - you need to change admin roles-- add 'can embed on dashboard' then it will work