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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
aaibel14
Regular Visitor

Border radius with JSON

Hello!

 

I'm trying to create a custom theme for my projects, but i'm facing a problem with visual borders.

 

Is there a way to set a default border radius with JSON? I searched the web, but couldn't find anything related. 

 

This is what I have right now.

 

"border": [{
                    "show": true,
                    "color": { "solid": { "color": "#FFFFFF" } }
                }]                

Any help will be appreciated. Thanks. 

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @aaibel14 

Just add the 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": "#FF0003" } },
					"radius": 10
				}]
			}
		}
	}
}

 

 

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

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @aaibel14 

Just add the 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": "#FF0003" } },
					"radius": 10
				}]
			}
		}
	}
}

 

 

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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