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
Pikachu-Power
Impactful Individual
Impactful Individual

JSON for a rectangle background color

Hello,

 

i have here the follwing code for a textbox style:

 

{
 "name": "TextboxTemplate",
 "visualStyles": {
 "textbox": {
 "*": {
 "*": [{
 "fontSize": 40,
 "fontFamily": "Calibri",
 "wordWrap": true,
 "color": { "solid": { "color": "#FFFFFF"} }
 }],
 "background": [{
 "show": true,
 "color": { "solid": { "color": "#DDDDDD"}},
 "transparency": 0
 }],
 "visualHeader": [{
 "show": true
 }]
 }
 }
 }
 }

 

How can I modify it for an rectangle? For example just for the background color.

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

Hi, @Pikachu-Power 

 

Do you mean to change the default fill color of the rectangle?

vangzhengmsft_0-1633340970493.png

 

Here is a reference document for modifying the theme, which may be useful to you.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes#customize-report-them...

 

 

Best Regards,
Community Support Team _ Zeon Zheng
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-angzheng-msft
Community Support
Community Support

Hi, @Pikachu-Power 

 

Do you mean to change the default fill color of the rectangle?

vangzhengmsft_0-1633340970493.png

 

Here is a reference document for modifying the theme, which may be useful to you.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-report-themes#customize-report-them...

 

 

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors