How-To Add a Choropleth Guide
See original GitHub issueProposed copy for the Choropleth layer documentation cc/ @colleenmcginnis
Mapbox Visual for Power BI -Choropleth
- Download and use the latest version of the Mapbox Visual PBIVIZ file (https://github.com/mapbox/mapboxgl-powerbi/raw/master/dist/mapboxGLMap.pbiviz)
- Prepare the shapes you want to include in your visualization as a Choropleth layer. If you need Countries, US States, or US Postcodes - no need to do this work, those shapes are included in the visual!
- Produce a Geojson or Shapefile of the boundaries you want to use. The boundaries should contain one uniquely-identifying property key that matches to your data. Common examples are a FIPS code, Postal Code, ISO code, or a unique name string.
- If your shapes have a lot of detail (>10 mb of geojson is a good rule of thumb), simplify the boundaries before uploading to Mapbox using www.mapshaper.org. Export your simplified boundaries as geojson.
- Upload your boundaries to Mapbox as a tileset
- Once your tileset finishes processing, click on the tileset to get the details from it to use in your Power BI visual.
- Map ID (
mapbox://rsbaumann.6ftg6wl3
) - Layername (
losa_crime_joined
) - Property name (
LSOA11CD
)
- Map ID (
- Configure the data for your Choropleth layer
a. Drag the field from your Power BI data source that matches the property values in your shapes to the
Location
field. Drag the metric you want to style the shapes by to theColor
field.b. Turn off all layers except the
Choropleth
layer from the Format pannel *c. Select
Custom
from the Data dropdown in the Choropleth layer settings. Enter themap ID
of your shapes into your Vector Tile URL (always includemapbox://
in front of your map ID),layername
into the Vector Tile Layername field, andproperty
into the Vector Property field. d. Your Tileset should show up in your Mapbox Visual container
Troubleshooting
- When I put my vector tile URL, source layer, and vector property in, I dont see any shapes on my map.
- Do the values in your Power BI
Location
data field match the data type (string vs. numeric) and exact data values in your vector tiles you uploaded to your Mapbox account? - Does your
Vector Tile URL
field begin withmapbox://
? A correct tileset URL should look likemapbox://rsbaumann.my-tileset-id
. - My layer does not show up but I’m sure all the settings are correct.
- Try toggling the Choropleth layer on and off again in your visual.
- Can I use a Choropleth layer with other Circle, Heatmap, or Cluster layers?
- No. This feature is on our roadmap but not currently available.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
How to Make a Choropleth Map: 5-Step Guide for Beginners
Taking the fastest route to designing a choropleth map, open a new project in Visme from the left side of your dashboard. From...
Read more >A Step-by-Step Guide to Making a Choropleth Map in Google ...
1. Find relevant data you'd like to display. · 2. Open Google Drive and create a new spreadsheet. · 3. Highlight both columns...
Read more >Make a choropleth map, part 1: create a style | Help | Mapbox
For this guide, you will need to download some data. This GeoJSON file is borrowed from the Leaflet choropleth tutorial and contains data...
Read more >Choropleth maps in Python - Plotly
Below we show how to create Choropleth Maps using either Plotly Express' px.choropleth function or the lower-level go.Choropleth graph object.
Read more >Choropleth Maps - A Guide to Data Classification
Choose Your Number of Classes · Select Your Data Classification Method · Creating a Choropleth Map. Equal Interval Data Classification; Quantile ( ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is live. Thanks @HeyStenson!
https://www.mapbox.com/help/power-bi-choropleth-map/
Hi, thanks for that clarification. Reading the documentation I thought the master branch would contain all these enhancements. Any idea on the launch date of these upgrades to the App Store?
I also have some feedback on choropleth colours (both numeric and categorical) and tooltips format. Where should I record these comments / feature enhancements?
Thanks again. Andrew
On Wed, 27 Jun 2018, 21:58 Sam Gehret, notifications@github.com wrote: