Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

How to Create a Color Gradient Legend for Custom Shape Map

Hi Community members,


I have created a custom shape map of a state county boundary. I am using the map to show the county-specific values of some numeric fields (i.e., % maltreat, a created measure based on two other fields). I added the field "% maltreat" to Color Saturtion and the map displays the color gradients based on the values of each county: higher values corresponds to darker colors. See screenshot below.



I woul like to add a simple-bar legend with the color gradient (and possibly min and max values). However, it seems the custom map does not have the function to do that. When I put "county" or other fields in the legend field, each county/value has a separate color displayed instead of a gradient color.

I know that the map tool in Excel will automatically generate a color gradient bar/legend. Is there anyway the custom shape map can do this? Or is there any custom visual for creating color gradients bar? I checked online and it seems there is no easy solution for this, probably because the outcome data is dynamic. Any advice would be appreciated.

New Member

I don't believe this is possible though it should be. There is an open idea for this:


Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors