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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Anonymous
Not applicable

custom font not working for legend and tooltip

Hi,

I am facing the below issue while I try to change the fontFamily of all the visuals in my Report using the below json file.

 

* Values filed is only getting changed based on the json file

* Legend and tooltip is not changing even if I give explicitly for the specific visual

 

Let me know if I have made any mistakes in my code or is there anything need to be added to achieve the same ?

 

Thanks in Advance:)

 

Json File:

{
"name":"Change fontfamily",
"visualStyles":{
"*":{
"*":{
"*":[
{
"fontSize":11,
"fontFamily":"Segoe UI"
}
],
"title":[
{
"show":true,
"fontColor":{
"solid":{
"color":"#FFFFFF"
}
},

"allignment":"center"
}
],
"legend": [{
"show": true,
"position": "Bottom",
"showTitle": false,
"titleText": "",
"fontColor": "#666666",
"fontSize": 10,
"fontFamily": "Segoe UI"
}] ,
"background":[
{
"show":true,
"color":{
"solid":{
"color":"#FFFFFF"
}
},
"transparency":0
}
],
"lockAspect":[
{
"show":true
}
],
"border":[
{
"show":false
}
],
"visualTooltip":[
{
"type":"Default"
}
],
"stylePreset":[
{
"name":"None"
}
],
"labels":[
{
"fontColor":{
"solid":{
"color":"#000000"
}
}
}
]
}
},
"page":{
"*":{
"background":[
{
"color":{
"solid":{
"color":"#e6e6e6"
}
},
"transparency":0
}
]
}
}
}
}

 

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi,  @Anonymous 

Please check if this thread could help:

https://community.powerbi.com/t5/Desktop/theme-json-for-visuals-fontfamily/td-p/1036558 

 

Best Regards,
Community Support Team _ Eason

 

 

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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