Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
derria
Frequent Visitor

Applying Visual Theme via JSON file

Hi guys,

 

I am trying to configure a corporate theme within Power BI and would like to set the title bar of all visual to be blue (#428BCA) with white (#FFFFFF).  However I am struggling to find the correct property which will do this, I have tried combinations of the following but to no avail:

 

{
   "name": "Corp Std",
   "dataColors": ["#FF00FF", "#5B6B72", "#D72825", "#E57F29", "#12C705"],
   "background": "#FFFFFF",
   "foreground": "#428BCA",
   "tableAccent": "#F21C75",
   "visualStyles":{
                    "*":{
                          "*":{
                                "*":[{  "showTitle":true,
                                        "color":"#428BCA",
                                        "fontcolor":"#FFFFFF"}]
                                }
                         }
                  }
  }
 

Any help with the JSON syntax would be greatly appreciated.

 

Thanks in advance

 

 

 

1 ACCEPTED SOLUTION

Hi @derria,

 

Unfortunately, it doesn't support formatting the title of visuals through themes. Please see this similar thread: Using Theme to set Title Background & Font Color

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yulgu-msft
Employee
Employee

Hi @derria,

 

Please refer to below article for information about the correct format of the detailed JSON file:

Use Report Themes in Power BI Desktop

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Yuliana,

 

I have previously read through the article you mentioned and hence why I posted onto the forum.

 

I am looking to create theme where any visual added will automatically default to having a blue title bar, as below:

 

Intended Theme.png

 

However, I am unable to locate a property setting via the JSON file which can do this,  and am looking for confirmation as to whether this is possible?

Hi @derria,

 

Unfortunately, it doesn't support formatting the title of visuals through themes. Please see this similar thread: Using Theme to set Title Background & Font Color

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
MaryF
Advocate II
Advocate II

If you check out this website, it may help show you what you need. https://powerbi.tips/tools/color-theme-generator/

derria
Frequent Visitor

Thanks MaryF.

 

Unfortunately, there is no property shown for the 'Title' on any of the visuals and I am starting to wondering if it is not feasible to set the title Smiley Sad

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.