2

I am new to Apache superset and I am trying to add a JavaScript tooltip to a geo map visualization.

I am using this piece of code in the "JavaScript tooltip generator":

d => "<div>field: <strong> ${d.object.props.ColumnName_Test} </strong></div>"

enter image description here

The value of the column name is not visible on the tooltip, but the hardcoded column name is visible: enter image description here

I have googled a lot, but there is no documentation about how to use the JavaScript tooltip generator in Apache Superset.

Does someone know what I need to change in this piece of code to show the value of the column, instead of the column name?

TylerH
  • 20,799
  • 66
  • 75
  • 101
sgl
  • 95
  • 8

1 Answers1

1

Did you first add ColumnName_Test variable to the "Extra data for JS"?

Check also this link

enter image description here

mona-mk
  • 101
  • 2
  • 4