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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How can I modify the border's width of my Power BI report in JSON?

This is the code now:
 
"visualStyles": {
    "*": {
      "*": {
        "border": [{
            "color": {"solid": {"color""#FFFFFF"} },
            "show"true,
            "radius"5
          }]

 

 

 
Thank you!
4 REPLIES 4
Boekholt
New Member

Hi @Anonymous ,

 

Found this old post with NO solution.

But there is a solution:

 

Just add the next line to your borden property in JSON.

 

- "width" :2

 

resulting in the following code:

 

"border": [{
					"show": true,
					"color": { "solid": { "color": "#FFFFFF" } },
					"radius": 5,
                                        "width" : 2
				}]

Kind regards,

Rob

Anonymous
Not applicable

Hi @Anonymous,

Yes, you can use theme JSON to custom the visual border width. This code should apply to visuals who have border property.

{
  "name": "Custom Border",
  "tableAccent": "#284861",
	"visualStyles": {
		"*": {
			"*": {	
				"border": [{
					"show": true,
					"color": { "solid": { "color": "#FFFFFF" } },
					"radius": 5
				}]
			}
		}
	}
}

Border radius with JSON 
Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi @Anonymous,
I know I can use the mentioned code to creat border. But I'd like to modify the width of the border (for all visualisations) because now it's just about 1 pix and it is too thin. Can you help me?

Anonymous
Not applicable

Hi @Anonymous,

After I check these properties, I found to change the radius volume seems not effective to increase border width to make it looks stronger. (it change the visual internal layout instead of direct increase the visual border size)

Perhaps you can submit an idea to modify and highlight the visual borders.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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