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
bentonepi
New Member

Make default color in Shape Map transparent

I would like to make the default color in Shape Map 100% transparent. I have this code snippet from deldersveld:

"visualStyles": {
		"shapeMap": {
			"*": {
				"dataPoint": [{
					"defaultColor": { "solid": { "color": "#01B8AA"}},
					"showAllDataPoints": true
				}],
				"defaultColors": [{
					"defaultShow": true,
					"defaultColor": { "solid": { "color": "#DDDDDD"}},
					"borderColor": { "solid": { "color": "#222222"}},
					"borderThickness": 1
				}]
			}
		}
	}
}

Is there a way to change "solid": to something else? Or adding a line that changes the transparency of the defaultColor? Any help would be appreciated.

Alternatively, I could set "defaultShow": false, but then the border is erased as well.

Thanks!

1 REPLY 1
v-frfei-msft
Community Support
Community Support

Hi @bentonepi,

 

Based on my test, there is no option for us to change the transparency of the default Color as you excepted by the json file. You can come up a new idea to Power BI ideas and add your comments there to improve Power BI and make this feature coming sooner.

 

Regards,

Frank

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

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.