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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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