Kevin H on 06 Oct 2018 00:11:14
There is now a "Visual header" card on all data visualizations. I would like to be able to set all properties in this card in my .json custom report theme file.
Including: Background color, Border, Transparency, Icon color, and about a dozen On/Off toggles.
- Comments (4)
RE: Set All "Visual Header" Options with Custom Theme
has anyone figured the on/off toggles out? or is it still not implemented?
RE: Set All "Visual Header" Options with Custom Theme
Hi Kevin,
had the same idea. Managed to get it to work this example:
{
"name": "ThemeName",
"visualStyles": {
"*": {
"*": {
"visualHeader": [
{
"foreground": { "solid": {"color": "#FFAA12"} },
"border" : { "solid": {"color": "#FFAA12"} }
}
]
}
}
}
}
I'm running on Version: 2.63.3272.40262 64-bit (October 2018)
This link was great at showing working examples of json config.
https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Slicer.json
RE: Set All "Visual Header" Options with Custom Theme
In the Power BI Desktop feature summary for the 2018-July release, it said "With this month’s update, all visual properties can be formatted through theming, with the exception of properties that require data in advance (e.g. data colors)."
https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-july-2018-feature-summary/#theme
RE: Set All "Visual Header" Options with Custom Theme
And, if you please, the JSON card name and property names/values should all be documented here:
https://docs.microsoft.com/en-us/power-bi/desktop-report-themes