Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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.
Hi @Muratmet123 ,
It looks like there was a syntax error in your JSON file. The issue was caused by extra data at the end of the JSON structure.Please try :
Best regards.
Community Support Team_Caitlyn