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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors