Forum Discussion

Baarathi88's avatar
Baarathi88
Icon for Helper III rankHelper III
6 years ago
Solved

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.

 

 

 

 

  • 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-file-format

     

    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.

2 Replies

  • v-xicai's avatar
    v-xicai
    Icon for Community Support rankCommunity 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-file-format

     

    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.