The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
Does anyone knows how to set the card background default color and transparency in a new PowerBI Theme?
Thank you
Solved! Go to Solution.
Hi @Anonymous,
JSON them file provides "background" and "transparency" properties allows us to set background color and transparency for a specific visual. Please refer to the sample in this article.
Regards,
Yuliana Gu
Hi @Anonymous,
JSON them file provides "background" and "transparency" properties allows us to set background color and transparency for a specific visual. Please refer to the sample in this article.
Regards,
Yuliana Gu
I cannot make it work... can you show a sample snippet of the code for the card background and transparency please?
Thank you
@Anonymous here is an example that works for me
{
"name": "Card-Background-Example",
"background": "#ffffff",
"foreground": "#000000",
"dataColors": [
"#8AD4EB",
"#939498",
"#C0504D",
"#DB6D4B"
],
"visualStyles": {
"*": {
"*": {
"*": [
{
"fontSize": 12,
"fontFamily": "Calibri",
"color": {
"solid": {}
}
}
],
"general": [
{
"responsive": true
}
]
}
},
"card": {
"*": {
"background": [
{
"show": true,
"color": {
"solid": {
"color": "#8AD4EB"
}
},
"transparency": 0
}
],
"labels": [
{
"show": true,
"color": {
"solid": {
"color": "#ffffff"
}
},
"fontSize": 14,
"fontFamily": "Calibri"
}
]
}
}
}
}
User | Count |
---|---|
69 | |
63 | |
59 | |
55 | |
28 |
User | Count |
---|---|
183 | |
80 | |
62 | |
46 | |
38 |