Nigeria Geo Plot Templates | Patrick Oladimeji | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Author
Patrick Oladimeji
@thehogfather
Data | Info Vis | Lots of passion for building dependable interactive systems.
Comments (3)
Fil
Jul 19, 2023
Here is a less hacky method: Plot.plot({ projection: { type: "mercator", domain: states }, marks: [ Plot.geo(states, Plot.pointer(Plot.centroid({ fill: "red" }))), Plot.geo(states, { stroke: "black" }), Plot.text( states.features, Plot.geoCentroid({ text: (d) => d.properties["admin1Name"], textAnchor: "middle", stroke: "white", fill: "black" }) ) ] })
Patrick Oladimeji
Jul 19, 2023
Love this! 😍
Jul 19, 2023
Somehow could not tell these could be composed this way from the api. Much to learn about the Plot family of libraries.
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
3
Follow
Follow
Nigeria Geo Plot Templates | Patrick Oladimeji | Observable