Forum Discussion
Custom Themes
- 7 years ago
Hi Anonymous ,
You can add the visual setting inside “visualStyles” for each visual according to this docs:
https://docs.microsoft.com/en-us/power-bi/desktop-report-themes#report-theme-json-file-format
{ "name": "TestCusotmTheam", "visualStyles": { "clusteredBarChart": { "*": { "title": [{ "show": true, "fontColor": { "solid": { "color": "#BEBEBE" } }, "alignment": "center", "fontSize": 11, "fontFamily": "Arial" }] } }, "card": { "*": { "title": [{ "show": true, "fontColor": { "solid": { "color": "#00FF00" } }, "alignment": "center", "fontSize": 11, "fontFamily": "Arial" }] } }, "page": { "*": { "background": [{ "color": { "solid": { "color": "#FFFFFF" } }, "transparency": 25 }], "outspace": [{ "color": { "solid": { "color": "#004753" } }, "transparency": 0 }] } } } }BTW, json as attached.
Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more
Hi Anonymous ,
You can add the visual setting inside “visualStyles” for each visual according to this docs:
https://docs.microsoft.com/en-us/power-bi/desktop-report-themes#report-theme-json-file-format
{
"name": "TestCusotmTheam",
"visualStyles": {
"clusteredBarChart": {
"*": {
"title": [{
"show": true,
"fontColor": { "solid": { "color": "#BEBEBE" } },
"alignment": "center",
"fontSize": 11,
"fontFamily": "Arial"
}]
}
},
"card": {
"*": {
"title": [{
"show": true,
"fontColor": { "solid": { "color": "#00FF00" } },
"alignment": "center",
"fontSize": 11,
"fontFamily": "Arial"
}]
}
},
"page": {
"*": {
"background": [{
"color": { "solid": { "color": "#FFFFFF" } },
"transparency": 25
}],
"outspace": [{
"color": { "solid": { "color": "#004753" } },
"transparency": 0
}]
}
}
}
}
BTW, json as attached.
Community Support Team _ DongLi
If this post helps, then please consider Accept it as the solution to help the other members find it more
- Anonymous7 years agoNot applicable
Thank you very much!
I used snippets from your example to create what I needed, which was a title with white text and a grey background, and it worked a treat. Your examples worked perfectly.
This is what I used.
{ "name": "TestTheme", "visualStyles": { "clusteredBarChart": { "*": { "title": [{ "show": true, "fontColor": { "solid": { "color": "#ffffff" } }, "alignment": "center", "fontSize": 9, "fontFamily": "Segoe UI", "background": { "solid": { "color": "#666666" } } }] } } } }Many thanks,
Martyn