Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Nick10
New Member

report theme - set border for all visuals

Hi guys, 

 

I´m looking for the right json-code to give all my visuals a border in a certain color. 

 

Unbenannt.PNGUnbenannt_2.PNG

This is my code now: 

{
  "name": "MyTheme1",
  "dataColors": [
    "#1079c1",
    "#66afda",
    "#99c9e6",
    "#284861",
    "#536475",
    "#94a3af",
    "#bfd3ef",
    "#bfbfbf",
    "#7f7f7f",
    "#404040",
    "#0d0d0d"
  ],
  "background": "#ffffff",
  "foreground": "#0d0d0d",
  "tableAccent": "#284861",
  "visualStyles": {
    "*": {
      "*": {
        "*": [
          {
            "fontSize": 10,
            "fontFamily": "Arial",
            "border": [{
                    "show": true,
                    "color": { "solid": { "color": "#F17925" } }
            }]
          }
        ]
      }
    }
  }
}

This is what i found on the internet, but it doesn´t work... 

"border": [{

                    "show": true,

                    "color": { "solid": { "color": "#F17925" } }
}]

Is "border" the right propertyName? 

 

I would be very lucky if somebody can help me. Thank you. 

 

 

 

 

1 ACCEPTED SOLUTION

HI, @Nick10

     I have imported theme again, It works well, and the vision of my desktop is:2.62.5222.761 64-bit (September 2018)

6.PNG

You may try to update the latest version of desktop

here is my test theme file link please try it.

https://www.dropbox.com/s/trkqv9aa558k9y6/test%20Theme.json?dl=0

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi, @Nick10

   You can try this code as below:

{
  "name": "MyTheme1",
  "dataColors": [
    "#1079c1",
    "#66afda",
    "#99c9e6",
    "#284861",
    "#536475",
    "#94a3af",
    "#bfd3ef",
    "#bfbfbf",
    "#7f7f7f",
    "#404040",
    "#0d0d0d"
  ],
  "background": "#ffffff",
  "foreground": "#0d0d0d",
  "tableAccent": "#284861",
	"visualStyles": {
		"*": {
			"*": {
		
				"border": [{
					"show": true,
					"color": { "solid": { "color": "#F17925" } }
				}]
			}
		}
	}
}

Result:

12.PNG

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Lin, 

 

I tried your code but it dosen´t work 😞 

 

result: 

resultresult

What could be the Problem? Do i need a special option or is it a version-problem? I use power bi desktop version march 2018. 

 

Thank you very much for your time!

 

regards, 

Nick

 

HI, @Nick10

     I have imported theme again, It works well, and the vision of my desktop is:2.62.5222.761 64-bit (September 2018)

6.PNG

You may try to update the latest version of desktop

here is my test theme file link please try it.

https://www.dropbox.com/s/trkqv9aa558k9y6/test%20Theme.json?dl=0

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hallo Lin, 

 

i have tried it again. It dosn´t work (even with a new data). Maybe it is really a version problem. 

 

Best regrads, 

Nick 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.