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
PetyrBaelish
Resolver III
Resolver III

Formsatting visualisation title using report themes

I'm attempting to format visualisation titles using report themes - upon searching how to achieve this I came across this article:
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/31543114-format-visualization-tit...

 

This Idea is marked as completed with the link below provided:
https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-july-2018-feature-summary/#theme

 

I have not been successful however in attempting to format the title of a stacked column chart visualisation.

 

Here is my JSON file, which successfully modifies my visualisation, just not the visualisation title as I had expected based on the above 2 articles:

 

{  
   "name":"Test",
   "dataColors":["#555555", "#444444", "#444445",  "#444446", "#444447", "#444448","#444449"],
   "background":"#888888",
   "foreground":"#999999",
   "tableAccent":"#AAAAAA",
   "visualStyles":{  
      "*":{  
         "*":{  
    "title": [{
                    "show": true,
                    "fontColor": { "solid": { "color": "#EEEEEE" } },
                    "background": { "solid": { "color": "#FFFFFF" } },
                    "alignment": "center",
                    "fontSize": 30,
                    "fontFamily": "Calibri, Cambria"
                }],
            "*":[{"fontSize":30,"fontFamily":"Calibri, Cambria","color":{"solid":{}}}]
             }
          },
      "*":{  
         "*":{
                  "grid":[
                             {  
                                "outlineColor":{"solid":{"color":"#777777"}},
                                "gridVertical":false,
                                "gridVerticalColor":{"solid":{"color":"#777777"}},
                                "gridHorizontal":false,
                                "gridHorizontalColor":{"solid":{"color":"#777777"}}
                             }
                         ],
                  "columnHeaders":[  
                                       {  
                                         "fontColor":{"solid":{"color":"#777777"}},
                                         "backColor":{"solid":{"color":"#FFFFFF"}},
                                         "fontFamily":"Calibri, Cambria"
                                               }
                                     ],
                  "values":[  
                                {  
                                  "backColorSecondary":{"solid":{"color":"#FFFFFF"}}
                                }
                           ]
                   }
                }
          ,"columnChart":{
      "*":{
       "legend":
        [{"fontSize":20}],
       "categoryAxis":
        [
         {"labelColor":
          {"solid":
           {"color":"#123456"}
          },
          "fontSize":20,
          "showAxisTitle":true,
          "titleFontSize":20
          }
        ],
       "valueAxis":
        [
         {
         "fontSize":20,
         "titleFontSize":30
         }
        ],
       "labels":
        [
         {"fontSize":20}
        ],
       "legend": 
        [
         {
          "show": true,
          "position": "Top",
          "showTitle": true,
          "titleText": "",
          "labelColor": { "solid": { "color": "#123456"}},
          "fontFamily": "Courier New",
          "fontSize": 30
         }
        ]
       }
      }
    }
}

 

 

Can anybody point out where I've gone wrong?

 

Here is a screenshot of my visualisation title:

ForForum-SmallTitle.PNG

1 REPLY 1
Greg_Deckler
Super User
Super User

Check out Power BI Tips theme generator: https://powerbi.tips/tools/ And maybe reach out to Mike Carlo here. For some reason, the @ tagging is not working for me today.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.