observablehq / plot

A concise API for exploratory data visualization implementing a layered grammar of graphics
https://observablehq.com/plot/
ISC License
4.16k stars 171 forks source link

centroid (and geoCentroid) sometimes fail when using tips #2085

Closed Fil closed 1 month ago

Fil commented 1 month ago

see https://talk.observablehq.com/t/faceting-a-choropleth/9387

mbostock commented 1 month ago

My take is that the geo mark doesn’t support the tip option because the geo mark doesn’t have x and y channels. So this is either “working as intended” or a duplicate of #2087 — if we want the geo mark to support the tip option, it should support the tip option (and you shouldn’t have to combine it with the centroid/geoCentroid transform).