Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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"}]}},
Solved! Go to 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"}]}},
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"}]}},
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |