Forum Discussion
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"}]}},
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"}]}},
2 Replies
- v-juanli-msft
Community Support
Hi abloor
Here is a example of Pie chart
https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Pie.json
Best Regards
MaggieCommunity 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.- abloor
Helper IV
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"}]}},