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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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