-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
FigureFactory for zipcode/US choropleth maps - Discussion #897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think we want essentially this notebook by Emilia, but streamlined as a FigureFactory. The most time consuming part to figure out may be parsing state-level TopoJSON down from US-level TopoJSON. We can host whichever TopoJSON file(s) we use as github.com/plotly/datasets. County TopoJSON for the entire US is here: @empet , do you remember where you sourced the Texas TopoJSON file? I'm imagining a syntax along these lines:
The It seems like we should start with "FIPS codes" as the regional county classification. If this ends up being popular, there are number of additions we could try later:
@Kully First task is probably to prototype a US-level choropleth map and make sure the interactivity speed (zoom, hover, pan) feels good for the resolution of TopoJSON you choose. Then see if you can parse just state TopoJSON from the same file. |
Some nice county-level data for download here: |
@jackparmer I googled for "Texas topojson, github" and found this file: https://github.com/TNRIS/tx.geojson/tree/master/counties |
I think the first version of this should actually use the SVG renderer rather than Mapbox. I've had some good results with US counties and SVG by disabling zoom. The recipe is outlined here in this function There are probably perf. improvements this recipe is missing that would improve load time time, something to keep in mind. This recipe generates this map: (via https://opioid-epidemic.herokuapp.com/) The data to draw the US shapefiles is here: These shapefiles should be shipped in: For call signature, I'm thinking along the lines of:
It would also be great to offer collections of states (either abbreviation or full state name):
Zoom should be locked by default. Let's merge an SVG version ASAP, then can explore a mabox-gl version if there is demand. |
No description provided.
The text was updated successfully, but these errors were encountered: