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
Smauro
Solution Sage
Solution Sage

Setting the page size in theme

Hello,

After July's 2.60.5169.3201 update, we've finally gotten some more features when creating .json themes. I have played around, but wasn't able to find a way to set the page size within the page element, and I've found it strange seeing that we can set the background and wallpaper properties but not this.
I've tried things like "pagesize", "PageSize", "size", "Size", inside the "Background" etc. yet nothing worked, even if a lot of them were accepted as themes in PowerBI Desktop.


Has anyone else figured a way how to do this? Or is it still not possible?

Cheers!




Feel free to connect with me:
LinkedIn

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

Hi Smauro,

 

As the announcement said "the majority of visual properties were able to be themed, but the visual’s “container” properties were not. " Currently, page element with can be customized is as below:

        "page": {

                "*": {

                  "background": [{

                   "color": { "solid": { "color": "#FFFFFF" } },

                   "transparency": 25

                }],

                "outspace": [{

                    "color": { "solid": { "color": "#004753" } },

                    "transparency": 0

                }]

            }

In addtion, you can refer to this similar case: https://community.powerbi.com/t5/Desktop/Set-default-size-of-visuals-in-custom-theme-file/m-p/472888...

 

Regards,

Jimmy Tao

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi Smauro,

 

As the announcement said "the majority of visual properties were able to be themed, but the visual’s “container” properties were not. " Currently, page element with can be customized is as below:

        "page": {

                "*": {

                  "background": [{

                   "color": { "solid": { "color": "#FFFFFF" } },

                   "transparency": 25

                }],

                "outspace": [{

                    "color": { "solid": { "color": "#004753" } },

                    "transparency": 0

                }]

            }

In addtion, you can refer to this similar case: https://community.powerbi.com/t5/Desktop/Set-default-size-of-visuals-in-custom-theme-file/m-p/472888...

 

Regards,

Jimmy Tao

I'd also like a theme that automatically sets the canvas size so maybe somebody knows if this is possible by now and what the settings are called that need to be added to the JSON.

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.