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
Betty12111
Frequent Visitor

JSON theme Overflow text background color

Dear Community,

 

I am trying to create the JSON theme.

My theme is accepted and works, except the chart's label background.

 

How can I do?

 

"pieChart": {
				"*": {
					"general": [{
						"responsive": true,
						"keepLayerOrder": true
					}],
					"background": [{
						"show": true,
						"color": { "solid": { "color": "#FFFFFF"}},
						"transparency": 0
					}],
					"border": [{
						"color": { "solid": { "color": "#000000"}},
						"show": true,
						"radius": 10
					}],
					"title": [{
						"show": true,
						"fontColor": { "solid": { "color": "#000000" } },
						"background": { "solid": { "color": "#FFFFFF" } },
						"alignment": "center",
						"fontSize": 14
					}],
					"legend": [{
						"show": true,
						"position": "Top",
						"showTitle": true,
						"titleText": "",
						"legendColor": { "solid": { "color": "#01B8AA"}},
						"fontFamily": "Segoe UI",
						"fontSize": 12
					}],
					"labels": [{
						"show": true,
						"labelStyle": "Category, data value, percent of total",
						"color": { "solid": { "color": "#605E5C"}},
						"labelDisplayUnits": "0",
						"labelPrecision": 0,
						"fontSize": 9,
						"fontFamily": "Arial Black",
						"position": "inside",
						"enableBackground": true,
						"backgroundColor": { "solid": { "color": "#FFFFFF" }},
						"backgroundTransparency":30
					}]
				}
			}

 

 default theme

Betty12111_0-1670833579539.png

 

My theme(It can't see clearly)

Betty12111_1-1670833622468.png

Regards,

Betty

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @Betty12111 ,

 

It seems that the background color doesn't work in pie chart. It still use the default color. Here I suggest you to change the data label to other bright colors instead of #605E5C which looks like grey.

Here is a example of Pie chart theme code.

https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Pie.json

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @Betty12111 ,

 

It seems that the background color doesn't work in pie chart. It still use the default color. Here I suggest you to change the data label to other bright colors instead of #605E5C which looks like grey.

Here is a example of Pie chart theme code.

https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Pie.json

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Many Thanks Rico Zhou.

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.