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.
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"}]}},
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |