Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
LijunChen
Resolver I
Resolver 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.

LijunChen_0-1675275242233.png

 

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.

1 REPLY 1
delaneyhut
New Member

I don't believe this is possible though it should be. There is an open idea for this: https://ideas.powerbi.com/ideas/idea/?ideaid=b9b64b04-9f50-4402-a548-c0f4a8ce67a4&page=2

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.