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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
abloor
Helper IV
Helper IV

JSON Theme for Pie Chart - detail labels

Hi,

 

Can you please help me with the code for a JSON theme file for my Pie chart.

In the Detail labels formatting section, I want to be able to set the 'Label style' as "All detail labels".

 

Is there a way to add this into my theme?

 

The relevant part of my theme file code is below.

 

Thank you

 

"pieChart":{"*":{"general":[{"responsive":true}],"labels":[{"show":true,"color":{"solid":{"color":"#777777"}},"fontFamily":"Segoe UI","fontSize":9,"labelDisplayUnits":"none"}]}},

1 ACCEPTED SOLUTION

Thanks Maggie, that helped me.  In order to be able to show "All Detail Labels" I had to change the code in the labelstyle section.  Here's what I did in case it helps anyone else.

 

"pieChart":{"*":{"general":[{"responsive":true}],"labels":[{"show":true,"color":{"solid":{"color":"#777777"}},"labelStyle": "Category, data value, percent of total","fontFamily":"Segoe UI","fontSize":9,"labelDisplayUnits":"0"}]}},

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @abloor 

Here is a example of Pie chart

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

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Maggie, that helped me.  In order to be able to show "All Detail Labels" I had to change the code in the labelstyle section.  Here's what I did in case it helps anyone else.

 

"pieChart":{"*":{"general":[{"responsive":true}],"labels":[{"show":true,"color":{"solid":{"color":"#777777"}},"labelStyle": "Category, data value, percent of total","fontFamily":"Segoe UI","fontSize":9,"labelDisplayUnits":"0"}]}},

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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