Hey Mates,
Does anyone know how to change the background color of the titles of the carts/graphs with a json file?
I'm trying to change the yellow color and the text color, but I can't find the name element or the property on the json file.
Thanks in advance
Hi @Anonymous ,
To change background color of chart/graphs titles, please add a visualStyles section to the JSON file to nest the formatting specifics. Here's a sample:
{
"name": "Custom Theme",
"dataColors": [ "#990011", "#cc1144", "#ee7799", "#eebbcc", "#cc4477", "#cc5555", "#882222", "#A30E33" ],
"background": "#FFFFFF",
"foreground": "#ee7799",
"tableAccent": "#990011",
"visualStyles": {
"*": {
"*": {
"title": [
{
"show": true,
"fontColor": { "solid": { "color": "#FFFFFF" } },
"background": { "solid": { "color": "#cc4477" } }
}
]
}
}
}
}
Referencing: https://www.youtube.com/watch?v=l3389KbpEtA
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Winniz, thanks for you answer, but for some reason, it is just applying that style for some titles, but, for the ones for the charts/graphs, it didn't work, don't know if I have to add a specific property, it's really odd. This is what I'm getting when I upload your Theme.json file:
As you can see the titles are still yellow, but the other ones, are pink :(.
Thank you so much!
Regards,
Sergio Montes
G'day Mate,
If that's a header of your chart, you can change background and Font in Visualization->Format->Title:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Hi Vahid,
Thank you so much for your answer, but I'm trying to find a property or the name of that element, to change it, with a json file (I'm creating a new theme). Appriciate your time. Have a good one and thanks again.
See these links:
https://community.powerbi.com/t5/Desktop/Using-Json-file-to-change-report-colors/m-p/1882863
https://powerbi.tips/tools/report-theme-generator-v3/
https://community.powerbi.com/t5/Desktop/Assigning-colours-in-json-file/td-p/520891
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
You can edit it at the visual level under Title in the format options.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi Mahoneypat,
Thank you so much for your answer, but I'm trying to find a property or the name of that element, to change it, with a json file (I'm creating a new theme). Appriciate your time. Have a good one and thanks again.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
User | Count |
---|---|
119 | |
75 | |
66 | |
51 | |
49 |
User | Count |
---|---|
183 | |
101 | |
80 | |
79 | |
77 |