最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Personalization of superset mapbox tooltips - Stack Overflow

programmeradmin2浏览0评论

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
Add a ment  | 

2 Answers 2

Reset to default 4

d => `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

发布评论

评论列表(0)

  1. 暂无评论