-
|
So Im looking to make visualizations based on single states by counties and also by towns. When I was looking at d3-geo I saw that there was full country but im trying to look on per state breaking down by county and towns. Anyone have any resources on this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
D3 does not have standard data files; we often use data from https://www.naturalearthdata.com/ for demos. |
Beta Was this translation helpful? Give feedback.
-
|
Here's an example that shows US counties: https://vizhub.com/curran/zoomable-county-choropleth?edit=files&file=getUSAtlasData.js The county shapes come from https://www.npmjs.com/package/us-atlas Also, if you want to add cities, here's an example that shows cities as dots: https://vizhub.com/curran/8fa016be1b024afeaf55aec9a44cef47?edit=files&file=index.js If you want to add labels, here's an example that does that: https://vizhub.com/curran/label-filtering-algorithm-prototype?mode=embed Another variant with zoomed in labels: https://vizhub.com/curran/e7c5973af924410cb8f815b8fbe3e1a4 Using these as references I bet you could piece together a solution for your problem. It sounds like you want just a single state at a time, so you could filter the counties that belong to that state and just show them, by looking at the FIPS code. Good luck! |
Beta Was this translation helpful? Give feedback.





Here's an example that shows US counties:
https://vizhub.com/curran/zoomable-county-choropleth?edit=files&file=getUSAtlasData.js
The county shapes come from
https://www.npmjs.com/package/us-atlas
Also, if you want to add cities, here's an example that shows cities as dots:
https://vizhub.com/curran/8fa016be1b024afeaf55aec9a44cef47?edit=files&file=index.js
If you want to add labels, here's an example that does that:
https://vizhub.com/curran/label-filtering-algorithm-prototype?mode=embed
Another variant with zoomed in labels:
https://vizhub.com/curran/e7c5973af924410cb8f815b8fbe3e1a4
Using these as references I bet you could piece together a solution for your problem. It sounds like yo…