Support Maps (Thematic, Colored, Filled, Regions, Choropleth) #750
JimCallahanOrlando
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
The Feature ID is needed as the JOIN field to match the external data with the GeoJSON Feature. "If a Feature has a commonly used identifier, that identifier |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Microsoft Excel allows one to create a Thematic map (Choropleth) though Microsoft calls it a "Region Chart" as in "Create a region chart in 3D Maps". Plotly Express ("Choropleth Map with plotly.express") and GeoPandas also allow one to create maps.
Microsoft Excel
"Get started with 3D Maps"
... Power Map, our popular 3-D geospatial visualization add-in for Excel 2013, is now fully integrated into Excel. We’ve also given this feature a more descriptive name, “3D Maps". You'll find this functionality alongside other visualization features on the Insert tab.
"Import a custom region file into 3D Maps":
You can import .KML or .SHP files that contain custom polygons. Once imported, you can use custom regions in the same manner as you would use standard regions such as zip codes.
Plotly Express
Choropleth Maps in Python
Below we show how to create Choropleth Maps using either Plotly Express' px.choropleth function or the lower-level go.Choropleth graph object.
...Here we load a GeoJSON file containing the geometry information for US counties, where feature.id is a [FIPS code]
GeoPandas
"Choropleth maps"
...GeoPandas makes it easy to create Choropleth maps (maps where the color of each shape is based on the value of an associated variable). Simply use the plot command with the column argument set to the column whose values you want used to assign colors.
"Reading spatial data"
"...GeoPandas can read almost any vector-based spatial data format including ESRI shapefile, GeoJSON files and more using the command:
geopandas.read_file()
which returns a GeoDataFrame object. "
The neat thing about GeoJSON is that is a text file and so one can look at the text and see what the ID field is and how it is represented (for example as a text string with digits "12" or a letter string "FL").
Wikipedia article about GeoJSON
Beta Was this translation helpful? Give feedback.
All reactions