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

Position of hover info in choropleth maps

Hello!

In a choropleth map, is it possible to override the position of hoverinfo?

For example here:

Current position of hoverinfo for United States is in the middle of the country. Would it be possible to move this point to the east coast, for example, or any other coordinates?

Thank you!

Choropleth hover labels appear at the centroid of the country’s largest polygon.

As a workaround, I’d recommend adding on invisible (e.g. with opacity:0) scattergeo trace at the locations at which you want to display hover labels and set hoverinfo: 'none' in your choropleth trace.

Thank you Etienne! I think I understand. I’ll see what I can do.