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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

fontColor property in JSON does not work

I've created following JSON Theme:

{
"name": "TEST",
"visualStyles": {
"*": {
"*": {
"*": [
{
"fontSize": 18,
"fontcolor": {
"solid": {
"color": "#FF0000"
}
},
"fontFamily": "Lucida Sans"
}
]
}
}
}
}

 

This Theme styles every element with the font family and size, but the property color does not work. I've tested it wirth a bar and line chart.

 

Any ideas?

 

Thanks,

Philipp

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I|ve solved it / I|ve add

"categoryAxis": [
{
"labelColor": {
"solid": {
"color": "#000000"
}
},
"axisStyle": "showBoth"
}
]

View solution in original post

3 REPLIES 3
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on my research, I am afraid you could just chang some formeting of the visual with JSON file, you could refer to this link:

https://community.powerbi.com/t5/Webinars-and-Video-Gallery/How-to-create-a-Power-BI-theme-with-a-JS...

 And this link:https://docs.microsoft.com/en-us/power-bi/desktop-report-themes#json-file-element-definitions

 

 

Regards,

Daniel He 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hello @v-danhe-msft,

 

what do you want to change?

Have you an example to set the font color? E.g. for the data labels or x Axis?

Anonymous
Not applicable

I|ve solved it / I|ve add

"categoryAxis": [
{
"labelColor": {
"solid": {
"color": "#000000"
}
},
"axisStyle": "showBoth"
}
]

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.