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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
bw70316
Helper V
Helper V

Custom Visual Changing Titles

How can I import a theme or create a custom visual that has the same font, size, and color I select from the JSON. If somebody could please comment below how to accomplish this similar to my legend I would be forever greatful. I have looked into the documentation and cannot for the life of my figure it out. 


{

"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
            }]
          
          
          

        }}
    
    }
}
1 REPLY 1
v-viig
Community Champion
Community Champion

Custom Visuals do not support visualStyles feature of Power BI Themes. It's on backlog with no ETA.

 

To fix specify colors in your custom visual you should hard code them in TypeScript code.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.