Questions tagged [choropleth]

A choropleth map is a thematic map in which areas are shaded or patterned in proportion to the measurement of the statistical variable being displayed on the map, such as population density or per-capita income.

Filter by
Sorted by
Tagged with
2 votes
1 answer
91 views

Making gridded map where each grid cell shows the share of points of certain category in QGIS

So, I have a dataset of many points across Europe. For illustration purposes see this image below: Each of these points has one of four categories attached to it, so the dataset I am working with has ...
starski's user avatar
  • 161
0 votes
0 answers
49 views

Choropleth map layer not displaying in Leaflet

I have a web map showing various selectable features (point, lines, polygons) and am trying to add a choropleth layer of U.S. state data. The layer displays in the legend where I can toggle it on/off, ...
MapAnalyst's user avatar
1 vote
0 answers
106 views

Choropleth map layer in OpenLayers

I tried to mimic the solution from Creating choropleth map using OpenLayers?. My implementation is as follows: const temperatureSource = new VectorSource({ features: tempData .filter((_, ...
Aayush Subedi's user avatar
4 votes
1 answer
242 views

How to apply the Four Colour theorem on GeoJSON feature collection with Leaflet

Imagine you have a GeoJSON feature collection of adjacent colored polygons presented in a Leaflet map; in the present case the parishes of the city of Lisbon fetch('https://geoapi.pt/municipio/lisboa/...
João Pimentel Ferreira's user avatar
1 vote
0 answers
190 views

Add extra info to the GeoJSON `features` from a Folium choropleth map with multiple feature groups

When I make a single Folium choropleth map, I often add data from my data DF to the GeoJSON data, so it can be displayed with the folium.GeoJsonTooltip(). My code looks like this: map_data_lookup = ...
Feikname's user avatar
0 votes
0 answers
152 views

Folium Choropleth Maps -- when do I need "geojson" parameter b/f .add_to(map)

Normally, when I create a choropleth map with Folium, at the end of the folium.Choropleth() call, I just .add_to(map): folium.Choropleth().add_to(m) I've been trying to create a map with multiple ...
Feikname's user avatar
0 votes
0 answers
317 views

Folium choropleth maps in layers lose scale - how to fix?

How can I get the scale/legend to display? I can get Folium to produce choropleth maps individually; they always include the scale and legend. I've also figured out how to get them grouped into ...
Feikname's user avatar
0 votes
0 answers
23 views

Choropleth multidirectional hillshading

I am wanting to make a similar map to this but with population data and arsenic pollution. I found this map here: https://twitter.com/kennethfield/status/506656439679451136. Does anyone know how to go ...
Dylangussman's user avatar
0 votes
1 answer
193 views

Create a choropleth map with crime data

New to this and QGIS, and I am very lost. I need to create a choropleth crime map of number of crimes committed in the area (each borough) I have the data https://data.police.uk/data/ but when I try ...
Ruby's user avatar
  • 1
1 vote
1 answer
200 views

Update a choropleth layer by zoom level when using a GeoJSON in Mapbox

I am trying to replicate this example https://docs.mapbox.com/mapbox-gl-js/example/updating-choropleth/, but instead of using the Mapbox tiles, I am using a GeoJSON. Independently the layers show, but ...
L Smeets's user avatar
  • 167
3 votes
1 answer
1k views

Update a Mapbox layer by zoom level when loading geojson

Very similar to this tutorial, I would like to create a MapBox map that at a zoomed out level shows regions (labelled Pcode in my data), but once zoomed it switched to a district level (labelled Name)....
L Smeets's user avatar
  • 167
0 votes
1 answer
184 views

Folium: ValueError: key_on `'FIPS'` not found

I'm working on a Folium choropleth map, using a shapefile from the Census bureau and religion data from the US Religion Census. I can get both sets of data loaded and cleaned up, so I have two DFs: ...
Adam's user avatar
  • 33
0 votes
1 answer
906 views

Folium TimeSliderChoropleth with tooltip?

I have followed an online example of using Folium to create a choropleth map with a timeslider, similar to what Aoife Currano has done in this magnificent post on mapping the spread of COVID back in ...
Will's user avatar
  • 404
3 votes
1 answer
432 views

Use GeoPandas to force a choropleth to use a legend with a greater range than the data provided in the column

I have a list of cities, and I'm trying to graph individual choropleth maps for each city's census tracts (coloring is based on their density column). However, I'd like the choropleth to color the ...
Austin Wolff's user avatar
0 votes
1 answer
102 views

Choropleth of world countries showing microstates

I'm trying to create a choropleth of world countries that also shows microstates - but the issue I have is that they're too small to be seen at the scale. Wikimedia projects sometimes use this ...
Andrea M's user avatar
  • 103
1 vote
0 answers
174 views

Plotly choroplethmapbox not rendering data / polygon geometries

I have a geoDataFrame with valid geometries and I use __geo_interface__ to create feature collections object which is passed to geojson property. Reference doc: https://plotly.com/python-api-reference/...
kms's user avatar
  • 473
3 votes
0 answers
558 views

Add overlay to choropleth map in plotly.express?

I recently started playing around with the plotly.express library for making choropleth maps. I've been able to create one just fine using a GeoJSON of a state's census tracts and a Pandas dataframe, ...
traitortots's user avatar
1 vote
1 answer
1k views

Map View in R: Labelling Name for Polygon in Map

I have created following choropleth map for cropland. The code I used is:- library(mapview) library(dplyr) library(sf) setwd("C:/Users/lenovo/Desktop/IEM") Province3Miscellaneous<-...
Walker's user avatar
  • 191
1 vote
1 answer
277 views

Choropleth hover functionality is glitching using Leaflet

The basic functionality of my web map is to allow users to switch between choropleth views using a dropdown menu. This basically works, but the issue I'm now having is with the info box that allows a ...
Rachel Jankowski's user avatar
0 votes
1 answer
303 views

Choropleth layer selection does not work in Leaflet

I am designing a simple prototype web mapping application where I want a user to be able to click on a dropdown menu and have the map's choropleth layer, choropleth legend, and hover info box all ...
Rachel Jankowski's user avatar
1 vote
2 answers
3k views

Folium plot GeoJSON polygon with fill color based on custom values

I have polygons with lat/long values associated with identifiers in a GeoDataFrame as shown below. Consider an example with two identifiers A and B, polygon A has three points and B has four points, ...
S_S's user avatar
  • 95
0 votes
0 answers
223 views

Multiple polygons associated with one district in shapefile

I have shapefile district level of India and I wish to plot a choropleth map using Python and GeoPandas. In the shapefile, there are multiple polygons associated with some districts and also just 1 ...
Richa Sharma's user avatar
0 votes
2 answers
1k views

Visualizing GeoHashed data as polygons on QGIS

I have a .csv delimited text layer that includes a particular precision 7 geohash along with a certain measured value for the area represented by said geohash. For example: tc0fh3s,-101.0 tc0fxfg,-100....
Nandula's user avatar
  • 781
2 votes
2 answers
557 views

Adding scaled location labels in QGIS

I currently am working on creating a choropleth map of population redistribution data, and would like to stack three layers on top of each other. First, a simple basemap-- I chose to use a Cartro ...
Noah Jacobs's user avatar
2 votes
1 answer
256 views

Making a choropleth map from zonal statistic in GEE

I have counted pixels with NDVI more than 0.2 for each polygon in a shapefile. Now I want to create choropleth map showing counts of pixels in each polygon. I want to how to create choropleth map ...
Tariq Abbas's user avatar
1 vote
0 answers
438 views

Creating Choropleth Map using points in ArcGIS Pro

As seen in the picture, the purple/yellow points represents yes/no, and the location of the points are based on home locations of the respondents. In ArcGIS Pro I would like to create a choropleth ...
Jessie's user avatar
  • 31
2 votes
1 answer
650 views

How can I create a Choropleth by combining a polygon GeoPanda with a point GeoPanda?

I have two GeoPanda dataframes, one with the location of shops with point coordinates in the geometry column, and one with London boroughs with polygons in the geometry column. My usual approach with ...
James's user avatar
  • 23
5 votes
1 answer
8k views

Folium draw polygons with distinct colours

I have trouble with my assignment. I have to draw over 100 polygons from the xml file and every of them has to have other color. I don't know how to accomplish it. First I tried to draw polygons in ...
RyQuiNitch's user avatar
0 votes
1 answer
369 views

How to programmatically create a bivariate choropleth in d3.js?

Question and Situation I'm using d3.js to visualize some data on a map. The user clicks on one checkbox and all path elements get filled according to a color-preset, which all works fine. Now what we ...
moeses's user avatar
  • 101
0 votes
1 answer
3k views

How to identify correct key_on parameter from JSON file for Folium Choropleth

I'm trying to make a Folium Choropleth map. But I'm stuck for long time on completing it. My map shows boundaries correctly, even shows legend correctly but the map is not filled with choropleth ...
Santhosh Kumar's user avatar
3 votes
2 answers
673 views

How to make QGIS Categorical Symbology Classify only the values that are present (i.e. not provide a category for "All other values")?

I am making a choropleth map to show the value, for each polygon, of an ordered categorical variable (a decile, in fact). So, each polygon already has a specific singular value of this variable, ...
Francis Barton's user avatar
2 votes
1 answer
557 views

Remove Existing Choropleth Map Layer, Legend and Info Div Before Adding a New One in leaflet "map.removeLayer()" is not Working

I followed the “Interactive Choropleth Map” tutorial for leaflet, available here(https://leafletjs.com/examples/choropleth/). Then I put all the things in a function, and I am calling that function on ...
Hassam Ali's user avatar
2 votes
1 answer
3k views

How to add data slider bar control to Folium maps

I am making a choropleth map in Folium which displays data for certain age brackets. I would like to add a double ended slider letting users select the bottom and top of the age range to view. The ...
Colin B's user avatar
  • 143
2 votes
1 answer
9k views

How to change circle opacity in Folium?

I made my first choropleth map using Folium which worked quite well! However I would like to change the opacity of my circles to be a bit more opaque. How does one do this? There does not seem to be ...
Colin B's user avatar
  • 143
0 votes
1 answer
196 views

Developing shapefile (SHP) for location from scratch [closed]

I am working on a research problem for a location for which geospatial vector data does not exist. This means I have to create one from scratch so that I can create shapefile data for this location. ...
Dean's user avatar
  • 123
1 vote
1 answer
4k views

How to get a Folium layer to display on top while not stopping lower layers highlight functionality

I'm trying to create a Folium map where the top layer is a boundary plot (fill_opacity: 0) of coarser structure to the Choropleth on the bottom level. I'd like the coarser level with no highlight ...
Dom McEwen's user avatar
2 votes
0 answers
382 views

How to overlay and combine a choropleth and a shaded raster in Python?

I want to make a choropleth map of regions but shade it according to local population density. This is not the problem of masking a raster with a shapefile but to overlay two representations of data ...
László's user avatar
  • 379
2 votes
0 answers
4k views

Specifying legend location in folium

I have a few choropleth maps in one Leaflet map using folium. However, in my output, my legends all congregate underneath one another and on one side where it blocks the 'control zoom' icon. Is there ...
sTonystork's user avatar
1 vote
0 answers
133 views

How do I create Map with regions from Scratch

I wish to create choropleth map in R (or any other program). The map I want to use cannot be found, hence I must create one from scratch (will use photo of map from 1800s). This involves 1- ...
Marium's user avatar
  • 111
1 vote
1 answer
721 views

Sources for population density map of Europe

I want to make population density map for EU where I can show populations of people aged about 65yrs, where can I get a EU shapefile and population Excel file? Is there any EU shape file available ...
geoak's user avatar
  • 19
1 vote
0 answers
139 views

Joined attribute not visible in categorized symbology

I am having an issue selecting a joined layer in the 'value' dropdown under graduated symbology to create a choropleth map. I joined originally the data from a csv file, but after I encountered this ...
Lydia's user avatar
  • 11
2 votes
1 answer
527 views

Advice on normalizing census data in choropleth maps

I'm trying to figure out the best way to normalize census data in two choropleth maps showing the population of people with hearing loss. Their geometries: The states of the United States. The ...
brienna's user avatar
  • 250
1 vote
0 answers
673 views

Python plotly choropleth does not work with GeoJSONs

I am trying to use plotly choropleth to draw the map, lets say for a random variable of num for each of the feature regions of the map in Italy. However, it does not work. below is the code that I use:...
PitPartizan's user avatar
1 vote
0 answers
593 views

Folium choropleth plots markers [closed]

I have this code to plot a choropleth from a GeoPandas DataFrame. def create_gpd_dataframe(self d = {'Angle of point': yard_list, 'Latitude': yard_lat_list, 'Longitude': yard_lon_list} ...
yovel cohen's user avatar
2 votes
1 answer
1k views

Is it possible to create a dynamic map in QGIS?

My table looks like this: I’ve already done a Choropleth map with the first attribute of my table. I would like to do the same Choropleth map with the rest of my attributes. I can’t replicate it ...
Sofia R's user avatar
  • 91
1 vote
2 answers
172 views

Apply external choropleths in QGIS 3

I have a large number of cloropeths stored in SLD and QML formats. QGis is unable to apply any of those, there is no option in the GUI for SLD, whereas it fails to apply QML files correctly. Is there ...
Luís de Sousa's user avatar
1 vote
0 answers
27 views

ArcMap 10.6 Choropleth Banding

We have ArcMap 10.6 at work, and would like create choropleth maps to visualize the the change in profit (%) that adjusting different business variables would have. **Note that the actual change in ...
patrick's user avatar
  • 11
5 votes
1 answer
140 views

How to create a saved, consistently available value/color key when styling a choropleth map in QGIS? [closed]

I've created a simple choropleth map representing birthplace data for the US, by PUMAs, for a particular shapefile (e.g., the layer shapefile_1): I've categorized the value for each of the PUMAs ...
scrollex's user avatar
  • 229
1 vote
0 answers
617 views

Mapbox choropleth map without the in-between colors?

I am new to Mapbox and love the simplicity of creating choropleth maps with stops, and while I prefer the way Mapbox colors each polygon relative to where the value falls between stops by blending the ...
Paul's user avatar
  • 83
1 vote
0 answers
2k views

Python - Issue to create choropleth map based on GeoJSON file: AttributeError

I'm trying to build a choropleth map, I cannot figure out why I get this error: AttributeError: 'NoneType' object has no attribute 'get' Here is my code: station_nb is a dataframe with values ...
srmel's user avatar
  • 11