Add a Pie Chart Layer to Azure Maps in Power BI - When It Helps and When It Clutters
Maps in Power BI reports are one of those features that look great in the demo and cause arguments in production. Someone on the leadership team sees a slick map at a conference, comes back, and asks why the sales dashboard is "just tables." Fair question. But a map is only useful when the geography is actually part of the story, and a lot of the maps I have been asked to build over the years should have stayed as bar charts. The Azure Maps pie chart layer sits right in the middle of that tension. Used well, it answers a question a plain bubble map cannot. Used badly, it turns a clean map into a plate of confetti.
Let me walk through what the pie chart layer does, the situations where it genuinely earns its place, and the design traps that make it worse than useless. Microsoft's documentation on adding a pie chart layer covers the mechanics of turning it on. I want to talk about whether you should.
What the pie chart layer actually shows
The standard Azure Maps visual plots points on a map, usually as bubbles, and you can size the bubbles by a value and colour them by a category. That is a bubble map, and for a lot of questions it is exactly right. Where are our biggest customers? Bigger bubble, done.
The pie chart layer changes each point from a single bubble into a small pie. So instead of one dot at a location showing a total, you get a little pie chart at that location showing the composition of that total. The size of the pie can still represent the overall value, and the slices show the breakdown by category. It is a way to put two dimensions on one point: how much is here, and what is it made of.
The classic example is product mix by location. Picture a national retailer with stores across Australia. A bubble map tells you Sydney sells more than Hobart, which you probably already knew. A pie chart layer tells you that the Sydney store skews heavily toward one product category while the Perth store has a completely different mix, and it tells you that at a glance, geographically, without making anyone read a table. That is a real insight the bubble map cannot give you. The geography and the composition together are the point.
Setting it up
The configuration is straightforward once your data is shaped right, and that last part is the catch. You need location data the visual can plot, latitude and longitude if you have it, which is the reliable option, or place names and geocoding, which is convenient but less precise. Then you need a category field for the slices and a value field for the size.
In the Azure Maps visual you turn on the pie chart layer in the formatting pane, assign the category field to the legend so it drives the slices, and set the size measure. From there you control the pie radius, the minimum and maximum sizes, and the colours per category. The colour choices matter more than people expect, because a pie is only readable if the slices are distinguishable, and Power BI's default palette will happily hand you two blues that look identical on a small pie sitting on a blue-ish map background.
One practical note for Australian reports. If you are geocoding by place name, be explicit about the country, because "Perth" exists in Scotland too and mapping visuals have a long history of dropping Australian data points into the northern hemisphere. Providing latitude and longitude directly avoids the whole problem, and if you are working with any volume of locations it is worth getting proper coordinates into your model rather than trusting the geocoder.
When it genuinely helps
I will give it credit where it is due. There are questions the pie chart layer answers better than anything else in Power BI.
Composition that varies by place is the obvious one. Product mix by store, customer segments by region, incident types by depot, fuel types by site. Any time the interesting thing is not just "how much" but "how much of what, and does that differ across the map," the pie layer earns its keep. We built something along these lines for a logistics client where the mix of delivery types varied enormously between metro and regional depots, and seeing that spatial pattern on a map made a planning conversation click in a way that a table of percentages never had.
It also works for a small number of categories. Two, three, maybe four slices per pie is readable. The eye can take that in at map scale. Beyond that you are asking too much of a shape that is a few pixels across.
And it works when the locations are spread out. Pies that do not overlap are legible. Pies stacked on top of each other in a dense city centre are not.
Where it falls apart
Here is the honest part, because this feature has a narrow band of "works well" and a wide band of "should have used something else."
Too many categories kills it instantly. A pie with eight slices is hard to read on a full-screen chart, let alone on a 30-pixel circle floating over Tasmania. If your category has more than about four meaningful values, the pie chart layer is the wrong tool. Group the long tail into "Other," or drop the map idea and use a matrix.
Overlap is the second killer. In any country with a few big cities and a lot of empty space, and Australia is the textbook case, your data clusters hard. Every capital city becomes a pile of overlapping pies, and the regional points are lonely dots you can barely see. The map ends up illegible exactly where the value is highest. Sometimes the answer is to zoom the default view, sometimes it is to split metro and regional into separate visuals, and sometimes it is to admit the map is fighting the data.
Small differences in slice size are the third. Humans are bad at comparing angles and areas. If your composition is 30/35/35 across every location, nobody will see the difference between the pies, and the whole exercise adds visual noise for no insight. Pie layers work when the mix is genuinely different from place to place. When it is roughly the same everywhere, you have built a decorative map.
And there is a performance angle. Rendering hundreds of pies, each with multiple slices, is heavier than plotting simple bubbles. On a large dataset it can get sluggish, and a laggy map on a mobile device in a regional office is a report nobody opens twice. Test it on the data volume you will actually have, not the tidy sample.
My rule of thumb
Reach for the pie chart layer when the composition at each location is the insight and there are only a few categories and the points are reasonably spread. That is a specific set of conditions, and when they all hold, it is genuinely the best way to show the pattern. When they do not, use a bubble map for magnitude, or a small multiples chart for composition, or an honest table. There is no prize for using the fancy layer.
The broader lesson, and it is one we repeat a lot in our Power BI consulting work, is that map visuals are a design decision, not a default. The question is always whether geography is part of the answer or just part of the decoration. When it is part of the answer, a good map is worth a dozen tables. When it is decoration, it costs you screen space, performance and clarity, and it usually comes at the request of someone who saw a nice map somewhere and wanted one too.
Getting this right is part of the wider business intelligence work we do, where the goal is reports people actually use to make decisions rather than dashboards that impress in the demo and gather dust after. It also tends to sit alongside the Microsoft Fabric platform work, because a good map is only as good as the model feeding it, and geocoding and location data are exactly the kind of thing that needs sorting out in the data layer, not patched in the visual.
If you have got Power BI reports where the maps are more decoration than insight, or you want reporting built by people who will tell you when a chart is the wrong chart, have a look at our services or get in touch.