Forum Discussion
Pie chart JSON theme does not work as expected
Hi, can anyone assist with below JSON for theme import please. My theme is long and is accepted and works, except the pie chart section below. The title bar of the piechart should be blue and white font but it does not work!
thanks
"pieChart":{"*":{"legend":[{"fontFamily":"Calibri, Calibri"}]},"title":[{"show":true,"fontColor":{"solid":{"color":"#FFFFFF"}},"background":{"solid":{"color":"#364b73"}}}]}
Hi DavidWaters100 ,
Try to import this JSON file.
{ "name": "PieChartTemplate", "visualStyles": { "pieChart": { "*": { "legend": [{ "fontFamily": "Segoe UI" }], "title": [{ "show": true, "fontColor": { "solid": { "color": "#FFFFFF"}}, "background": { "solid": { "color": "#364b73"}} }] } } } }Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- amitchandakSuper User
DavidWaters100 , refer the same issue was discussed here
https://community.powerbi.com/t5/Desktop/JSON-Theme-for-Pie-Chart-detail-labels/m-p/690313
- DavidWaters100Post Patron
Hi amitchandak
Thanks for your reply - this issue is to do with titles - I think the issue in the link was not about titles?
- v-lionel-msftCommunity Support
Hi DavidWaters100 ,
Try to import this JSON file.
{ "name": "PieChartTemplate", "visualStyles": { "pieChart": { "*": { "legend": [{ "fontFamily": "Segoe UI" }], "title": [{ "show": true, "fontColor": { "solid": { "color": "#FFFFFF"}}, "background": { "solid": { "color": "#364b73"}} }] } } } }Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- DavidWaters100Post Patron
Thanks for your help on this, just seen it has been accepted as solution