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
Baarathi88
Helper III
Helper III

Custom Font for Table, Chart heading and table contents

Is it possible in power bi to give Title of Line Chart, Table and KPI with Custom font.

 

Plus Contents of Table and Line chart with Arial. Refer the below image.

 

Baarathi88_1-1594970204103.png

 

 

 

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Baarathi88 ,

 

You may refer to desktop-report-themes#report-theme-json-file-format for details to import custom theme. You would change the "*"  in the first codes to the proper parts you'd like to customize. 

 

Common Format:

{
    "name": "Green",
    "dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
    "background":"#FFFFFF",
    "foreground": "#3A6108",
    "tableAccent": "#568410",
    "visualStyles":{
        "*": {
            "*": {
                "*":  [{
                        "fontFamily": "simsong"
                    }]
            }
        }
    }
}





For example, customize font for the Table and Line chart visual.



{
    "name": "Green",
    "dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
    "background":"#FFFFFF",
    "foreground": "#3A6108",
    "tableAccent": "#568410",
    "visualStyles":{
        "tableEx": {
            "*": {
                "*":  [{
                        "fontFamily": "Arial Black"
                    }]
            }
        },
        "lineChart": {
            "*": {
                "*":  [{
                        "fontFamily": "Arial Black"
                    }]
            }
        }
    }
}

For reference:

 

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes#report-theme-json-fil...

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @Baarathi88 ,

 

You may refer to desktop-report-themes#report-theme-json-file-format for details to import custom theme. You would change the "*"  in the first codes to the proper parts you'd like to customize. 

 

Common Format:

{
    "name": "Green",
    "dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
    "background":"#FFFFFF",
    "foreground": "#3A6108",
    "tableAccent": "#568410",
    "visualStyles":{
        "*": {
            "*": {
                "*":  [{
                        "fontFamily": "simsong"
                    }]
            }
        }
    }
}





For example, customize font for the Table and Line chart visual.



{
    "name": "Green",
    "dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
    "background":"#FFFFFF",
    "foreground": "#3A6108",
    "tableAccent": "#568410",
    "visualStyles":{
        "tableEx": {
            "*": {
                "*":  [{
                        "fontFamily": "Arial Black"
                    }]
            }
        },
        "lineChart": {
            "*": {
                "*":  [{
                        "fontFamily": "Arial Black"
                    }]
            }
        }
    }
}

For reference:

 

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes#report-theme-json-fil...

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

amitchandak
Super User
Super User

@Baarathi88 , I think there is an option for font and font size in format

 

refer

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

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.