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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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