Choropleth hover over in the wrong place

Hello,

I’ve managed to make a global choropleth but the hover over doesn’t work for France. It only appears when you go to the bottom tip of Spain. Does anyone know why this could be?

My notebook is here https://observablehq.com/d/f0370092bf636aa2

you need to set the sharing to at least unlisted for us to see it

doh! Thank you Tom, I’ve updated the sharing.

Yes it’s a recurrent problem. The centroid of “France” is indeed in Spain, because the French Guyane pulls it away from the main “hexagon” land.
See https://github.com/observablehq/plot/pull/2098 for an alternative.

2 Likes