3

According to superset pull request it's possible to personalize the tooltip for geographic data using some JavaScript.

enter image description here

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.com/apache/incubator-superset/pull/4173

I've no idea where my extra parameters go into the JavaScript environment.

TylerH
  • 20,799
  • 66
  • 75
  • 101
airliquide
  • 520
  • 7
  • 16

1 Answers1

3

d => `test: ${d.object.extraProps.occupancy}` works for me

gyohza
  • 736
  • 5
  • 18
  • 4
    While this code may resolve the OP's issue, it is best to include an explanation as to how your code addresses the OP's issue. In this way, future visitors can learn from your post, and apply it to their own code. SO is not a coding service, but a resource for knowledge. Also, high quality, complete answers are more likely to be upvoted. These features, along with the requirement that all posts are self-contained, are some of the strengths of SO as a platform, that differentiates it from forums. You can edit to add additional info &/or to supplement your explanations with source documentation. – ysf Jun 03 '20 at 20:52