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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rperez
New Member

Theme imported from JSON file does not alter Fonts, Title, and color for some visuals

Hi, I'm running the current Dec 2019 Power BI Desktop and started by customizing currrent theme and adding additonal visuals. I'm trying to keep Font sizes, colors, and titles to be standard throughout any report. The Table visual seems to be the only one where the changes made to the JSON file take affect. The other visuals (Matrix, Slicer, and Line Graph) do not seem to take any of the formatting done within the JSON file. Are the setting of background and font for the above visuals Title supported? What am I misssing here. Below is the JSON entry I have for the visuals that are not working, especially title. 

            "pivotTable":{
                "*":{
                    "stylePreset":[{
                        "name":"Default"
                    }],
                    "columnHeaders":[{
                        "fontColor":{"solid":{"color":"#666666"}},
                        "backColor":{"solid":{"color":"#FFFFFF"}},
                        "outline":"Bottom only",
                        "fontFamily":"DIN",
                        "fontSize":9
                    }],
                    "rowHeaders":[{
                        "fontColor":{"solid":{"color":"#333333"}},
                        "backColor":{"solid":{"color":"#FFFFFF"}},
                        "outline":"Right only",
                        "fontFamily":"DIN",
                        "fontSize":10
                    }],
                    "values":[{
                        "fontColorPrimary":{"solid":{"color":"#333333"}},
                        "backColorPrimary":{"solid":{"color":"#FFFFFF"}},
                        "fontFamily":"DIN",
                        "fontSize":10
                    }],
                    "subTotals":[{
                        "fontColor":{"solid":{"color":"#FFFFFF"}},
                        "fontFamily":"DIN",
                        "backColor":{"solid":{"color":"333333"}},
                        "fontSize":10
                    }],
                    "grandTotals":[{
                        "fontColor":{"solid":{"color":"#FFFFFF"}},
                        "fontFamily":"DIN",
                        "backColor":{"solid":{"color":"#333333"}},
                        "fontSize":10
                    }],
                    "title":{
                        "show":true,
                        "fontColor":{"solid":{"color":"#FFFFFF"}},
                        "background":{"solid":{"color":"#333333"}},
                        "fontFamily":"DIN",
                        "fontSize":10
                        }
                    }},
 
            "tableEx":{
                "*":{
                    "grid":[{
                        "rowPadding":2,
                        "outlineColor":{"solid":{"color":"#E6E6E6"}},
                        "outlineWeight":2,
                        "textSize":10
                    }],
                    "columnHeaders":[{
                        "fontColor":{"solid":{"color":"#666666"}},
                        "backColor":{"solid":{"color":"#FFFFFF"}},
                        "fontFamily":"DIN",
                        "fontSize":9
                    }],
                    "values":[{
                        "fontColorPrimary":{"solid":{"color":"#333333"}},
                        "backColorPrimary":{"solid":{"color":"#FFFFFF"}},
                        "fontColorSecondary":{"solid":{"color":"#333333"}},
                        "backColorSecondary":{"solid":{"color":"#FFFFFF"}},
                        "fontFamily":"DIN",
                        "fontSize":10
                    }],
                    "total":[{
                        "fontColor":{"solid":{"color":"#333333"}},
                        "backColor":{"solid":{"color":"#FFFFFF"}},
                        "fontFamily":"DIN",
                        "fontSize":10
                    }],
                    "title":[{
                        "show":true,
                        "fontColor":{"solid":{"color":"#FFFFFF"}},
                        "background":{"solid":{"color":"#333333"}},
                        "fontFamily":"DIN",
                        "fontSize":10
                    }],
                    "labels":[{
                        "color":{"solid":{"color":"#333333"}},
                        "fontSize":10,
                        "fontFamily":"DIN"
                    }]
                    }},
 
Any help and clarification is appreciated.
 
3 REPLIES 3
Anonymous
Not applicable

Hello team,

 

I have same issue as mentioned in this query. Do anyone got the solutions for this questions.

 

Regards

M Logendran

 

Anonymous
Not applicable

Hi @rperez ,

 

Please check the document and video below.

https://docs.microsoft.com/en-us/power-bi/desktop-report-themes#how-report-themes-work.

https://www.youtube.com/watch?v=l3389KbpEtA.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous 

 

I've looked over the links previously, but did so again to confirm and compare examples of what i have in my json file. Do not see anything wrong but some examples below, still continue.

 

Reports produced Sept2019 Desktop

1- Two matrix visuals. One of them, the background changes but not the font. the other one, remains the same.

2- Line Graph colors change based on the position of the imported them palette. Believe this is the expected behavior when custom colors were used in original report.

 

Reports produced with Dec2019 Desktop

1- Same as #1 above but more consistent.

 

    "visualStyles":{
        "*":{
            "*":{
                "border":[{
                    "show":true,
                    "color":{"solid":{"color":"#E6E6E6"}},
                    "radius":5
                    }],
                "title":[{
                    "show":true,
                    "fontColor":{"solid":{"color":"#FFFFFF"}},
                    "background":{"solid":{"color":"#333333"}},
                    "alignment""left",
                    "fontFamily":"DIN",
                    "fontSize":10
                    }],
                "*":[{
                    "responsive"true,
                    "wordWrap"true,
                    "fontFamily""DIN"
                }]
                }
            },
            "pivotTable":{
                "*":{
                    "stylePreset":[{
                        "name":"Default"
                    }],

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors