Welcome to the custom visuals community blog!

by Power BI Team tzvikei on ‎03-18-2017 03:59 PM

 

Comments
by bw70316 Frequent Visitor
Wednesday

Is it possible to change format the title fonts, size, and color so they all appear the same for each visualization? I was able to accomplish this with Legend, but cannot seem to figure it out with Titles for my visuals. 

by Moderator v-viig
Wednesday

Hi @bw70316

 

Custom Visuals can not control Title properties. We'd recommend to use Power BI Themes to change Title color for whole report.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

by bw70316 Frequent Visitor
Thursday

I have tried doing this with my imported theme. I don't see in the documentation where to manipulate titles for entire visualizations. Can you demo how to do this similar to my legend... I have tried doing this with title for all my visuals with no luck. 

 

 

 
 "title":[{
                "show":false

            }]

}]

 

 "legend": [{
                "show": true,
                "position":"LeftCenter",
                "showTitle": true,
                "titleText": "",
                "legendColor": { "solid": { "color": "#060606"}},
                "fontFamily": "Century Gothic",
                "fontSize": 12
            }]

 

by Moderator v-viig
Thursday

Do you want to apply the same options for all of Titles? Do you use any custom visuals?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

by bw70316 Frequent Visitor
Friday

First off, thanks for the reply. I forgot to do that last time. Secondly, no I currently have not created custom visuals. Just JSON themes in reports. I followed the documentation in this link: https://docs.microsoft.com/en-us/power-bi/desktop-report-themes... here is my current JSON.. If you know how, could you please explain how to do what I am doing for my legened for my titles?

{

"name": "CEI",

"dataColors": ["#07138d" , "#2aabe2" , "#fdce0c" ,  "#9edc5d", "#7a36ad", "#e0a7f9", "#b7dee8", "#e16f06"],

"background":"#FFFFFF",

"foreground": "#007C59",

"tableAccent":"#FCB514",

"visualStyles": {
    "*": {
        "*": {
            "*":[{
                "responsive":true,
                "wordWrap":true,
                "fontFamily":"Georgia",
                "fontColor":"#060606",
                "fontSize":13
            }],
                     

            
            "objects": {
                
            "wordWrap":[{
                "show":true
            }],
            "labels": [{
                "show":true
                
            }]
            },

        
            "categoryAxis": [{
                "showAxisTitle":true
            }],
            "valueAxis":[{
                "showAxisTitle": false
                }],
            "legend": [{
                "show": true,
                "position":"LeftCenter",
                "showTitle": true,
                "titleText": "",
                "legendColor": { "solid": { "color": "#060606"}},
                "fontFamily": "Arial Black",
                "fontSize": 12
            }]
          
          
          

        }}
    
    }
}

by Moderator v-viig
20 hours ago

Our recommendation is to post this question at Desktop thread as current one is only about Custom Visuals.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com