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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors