Black Lives Matter. Please consider donating to Black Girls Code today.

How to remove 'trace0'?

I want remove ‘trace0’ showing on the map. How to use hovertemplate to remove this? And before I use hovertemplate, do I need to specify hovername?


The hovertemplate is a string that sets what is displayed on hover. If you want to display some data that is not used in the trace definition, then you can define the customdata for that trace`

To avoid displaying the trace name (trace0) on hover, insert at the end of the hovertemplate string,