Forum Discussion
Anonymous
8 years agoNot 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
- Anonymous8 years ago
I|ve solved it / I|ve add
"categoryAxis": [{"labelColor": {"solid": {"color": "#000000"}},"axisStyle": "showBoth"}]
3 Replies
- v-danhe-msftMicrosoft 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:
And this link:https://docs.microsoft.com/en-us/power-bi/desktop-report-themes#json-file-element-definitions
Regards,
Daniel He
- AnonymousNot 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?
- AnonymousNot applicable
I|ve solved it / I|ve add
"categoryAxis": [{"labelColor": {"solid": {"color": "#000000"}},"axisStyle": "showBoth"}]