Putting the Shape Map into Focus

Here is a simple technique for the Shape Map in Power BI that allows additional focus on relevant polygons as well as adds some enhanced appeal. In my recent “Fish Oakland County!” submission to the Power BI Data Stories Gallery, I used a map that highlighted certain lakes depending on the data. As you apply different slicer values, outlines for the lakes with no data disappear, but the lake polygons remain.

lakes

lakes2

 

The usual Shape Map behavior filters out all of the other lakes and puts focus only on selections.

lakes3

 

The technique to maintain geographic perspective and keep the other lakes onscreen while only highlighting selected lake(s) is simple. Use two maps.

Lakes5.gif

 

In the following image, the map on the left with the black background filters all the other lakes out. The map to the right without a background is an overlay that sits on top of the other map in the final visualization. Through a combination of Format options, you can achieve what appears in the published report. In addition, you could use Interactions and attempt even more (I’m not changing Interaction behavior for this particular report though).

lakes4

 

The “focus” effect on the final report comes by virtue of using both a different border color and one that is much thicker. It looks terrible when viewed on its own, but it calls attention to the polygon when the other map rests atop.

Here’s an image of the Format options for the background (black) map. In the Default Color section, note that Show is disabled and that the Border Width is as high as it can get.

lakes6

Disabling Show is important for the background map because otherwise all of the polygons have the border regardless of what is selected. Yuck!

lakes7

 

Once you have the background map configured, you can work on the overlay by copying and pasting the same map, then altering the Format options. Here are the options for the overlay map. Note how Show is now enabled and the border width is as small as possible.

lakes8

After that, you can simply drag the transparent overlay on top of the background map. You can use Bring Forward on the overlay to change the z-index if needed.

Happy mapping.

 

 

 

 

 

 

Advertisements

One thought on “Putting the Shape Map into Focus

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s