Forum Discussion
Using Theme to set Title Background & Font Color
I'd like to set a default color font and backgrond color for my visuals using an imported theme.
I know you can set some specific components of visuals shown in this link, but the documentation isn't very descriptive or clear to me.
https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-report-themes/
- Anonymous8 years ago
Anonymous
I've received the below responce from Microsoft, it looks like it is currently not a function available with Themes.
We received an update from product team that We don’t yet support formatting the title of visuals through themes.
We have done extensive research and troubleshooting to understand the issue which you are facing. From our findings and after having discussion with product group team we got to know that this is the known issue and this is in our roadmap. Unfortunately we cannot provide any ETA at this moment. So we will be closing this case today. Appreciate your support and partnership with Microsoft. You are our valuable customer and we strive to assist you better and better every day.
Looks like we just have to wait.
19 Replies
- PeterZNew Member
As of Aug 2018 update you can style the title font, color, backgraound of controls. You can also set background of the whole report.
eg:
"visualStyles": { "*": { "*": { "title": [{ "show": true, "fontColor": { "solid": { "color": "#CCDCE4" } }, "background": { "solid": { "color": "#335462" } }, "alignment": "left", "fontFamily": "Arial", "fontSize": 10 }], "background": [{ "show": true, "color": { "solid": { "color": "#FFFFFF" } }, "transparency": 0 }] } }, "page": { "*": { "background": [{ "color": { "solid": { "color": "#87BED4" } }, "transparency": 60 }] } } }See the annoucement from MS here:
https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-july-2018-feature-summary/#theme- AnonymousNot applicable
Can't get the title color to work. Shouldn't this work?
{ "visualStyles":{ "*":{ "*":{ "title":[ { "show":true, "fontColor":{ "solid":{ "color":"#285c4d" } }, "alignment":"left", "fontSize":16 } ] } } } }- turbomansonRegular Visitor
Did you figure out a way todo this?
- AnonymousNot applicable
Anonymous
I've received the below responce from Microsoft, it looks like it is currently not a function available with Themes.
We received an update from product team that We don’t yet support formatting the title of visuals through themes.
We have done extensive research and troubleshooting to understand the issue which you are facing. From our findings and after having discussion with product group team we got to know that this is the known issue and this is in our roadmap. Unfortunately we cannot provide any ETA at this moment. So we will be closing this case today. Appreciate your support and partnership with Microsoft. You are our valuable customer and we strive to assist you better and better every day.
Looks like we just have to wait.
- AnonymousNot applicable
Good work, that's probably the best I could have hoped for. Glad to hear it's on their road map.
Thanks for your efforts,
Will
- remusOFrequent Visitor
Is there already an update about formatting the titels of visuals using json?
Thank you
- AnonymousNot applicable
Not that I've seen.
Have you tried it? If so, can you post what your solution is and I'll mark it as the solution!
- AnonymousNot applicable
I'm trying to achieve exactly the same thing but finding the documentation a bit of a nightmare to decipher.
Currently I'm trying to create a simple title color format for all visuals ao under visual styles we start with * * * so this is a generic theme but even after searching through the massive text dump at the end of the documentation I'm still struggling to find the property that allows me to set title color, the best I can manage is this:
"*":{
"*"{
"*"{
"cardTitle": { "color": { "#3a2178"}}
}
}
}
Which doesn't seem to work and is different to the documentation as the documentation doesn't really specify anywhere to even type a color. I'm so confused and a bit flustered.
Can anyone shed any light on this? It would be absolutely absurd if we have all of these options but cannot set the title background color and text color for all visuals.
- AnonymousNot applicable
Anonymous
I've tried using that tool, but it doesn't offer the option to change visuals title color.
Anonymous
I have also tried using something similar to what you've posted, however I'm unable to get that to work either.
Visual title/header colors and font colors seem like a basic function and I agree that the documentation released regarding themes is less than helpful. I would love to see some more detailed information on creating those JSON files so that I can trully create a visual standard across our organization.
- AnonymousNot applicable
Hi Anonymous,
Based on further test, some of properties seems not suport to use in custom theme.
Test result:
1. Use 'background' and 'foreground' to setting color, it works.
2. Use specific structure to setting specific properties. Power bi can import custom theme but not apply on the report.In addition, you can also contact to power bi team to known more about this.
Reference link:
Create custom color themes - Power BI Tips & Tricks #34
Regards,
Xiaoxin Sheng
- AnonymousNot applicable
HI Anonymous,
Can you ensure you used on the supported visual and properties? I don't think you can use it to setting the unsupported properties.
In addition, you can also try to use below generator:
Regards,
XIaoxin Sheng