This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Hi all,
I don't know if this is the the right place to post this, however I was creating a custom theme for PowerBi by downloading the JSON file and changing some elements that PowerBI doesn't let you customize yourself in the app.
One of the things I want to change is that I want to insert an image as a background. Following a video I saw online, I now have a problem that "url" becomes white (must be blue if it's recognised by VS code as correct syntax). I will include the code below, and the thing I am referring to is that it doesn't seem to recognize "url". I have formatted it correctly, so that doesn't seem to be the problem. I've shortened the url, since the message cannot contain more than 20,000 characters.
{
"name": "Power Bi theme",
"textClasses": {
"label": {
"color": "#666666",
"fontFace": "'Trebuchet MS'",
"fontSize": 11
},
"callout": {
"color": "#666666",
"fontFace": "'Trebuchet MS'",
"fontSize": 42
},
"title": {
"color": "#666666",
"fontFace": "'Trebuchet MS'",
"fontSize": 32
},
"header": {
"color": "#666666",
"fontFace": "'Trebuchet MS'",
"fontSize": 11
}
},
"dataColors": [
"#051E50",
"#3B3B3B",
"#666666",
"#118DFF",
"#CCDAFE",
"#00C66A",
"#D64550",
"#000000"
],
"bad": "#D64550",
"neutral": "#000000",
"good": "#00C66A",
"visualStyles": {
"*": {
"*": {
"background":[
{
"image": {
"name": "Background",
"scaling": "fit",
"url": "data:image/jpeg;base64,/9j/4A"
}
},
{
"transparency": 0
}
]
},
"visualTooltip": [
{
"themedTitleFontColor": {
"solid": {
"color": "#FFFFFF"
}
},
"themedValueFontColor": {
"solid": {
"color": "#666666"
}
},
"themedBackground": {
"solid": {
"color": "#666666"
}
},
"actionFontColor": {
"solid": {
"color": "#666666"
}
}
}
],
"visualHeaderTooltip": [
{
"themedTitleFontColor": {
"solid": {
"color": "#FFFFFF"
}
},
"themedBackground": {
"solid": {
"color": "#666666"
}
}
}
]
}
}
}
Thanks in advance!
Best,
Murat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.