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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Page alignment JSON

Hi,

 

trying to write a custom theme using json, I find Microsoft documentation lacking (no surprise there).

Found ample examples online for visuals alignment, but no Page Alignment json code.

 

Tried the following excerpt:

"page": {
   "*": {
      "background": [{
      "color": { "solid": { "color": "#ffffff" } },
      "transparency": 0,
      "alignment": "middle"
},

but I still get default page vertical alignment as "top".

 

Just to make things clear, I want this to be the default set in JSON:

vert.PNG

 

Thank you!

2 ACCEPTED SOLUTIONS
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Also, you can customise a current theme and it looks like this property is not included as well.

image.png

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

le_tool
Helper I
Helper I

Hello @Anonymous ,

 

maybe too late, but someone else might be still looking for this 🙂

 

"page": {
      "*": {
           "displayArea": [
                           {
                            "verticalAlignment": "Middle"
                           }
                          ]
           }
        }

View solution in original post

4 REPLIES 4
le_tool
Helper I
Helper I

Hello @Anonymous ,

 

maybe too late, but someone else might be still looking for this 🙂

 

"page": {
      "*": {
           "displayArea": [
                           {
                            "verticalAlignment": "Middle"
                           }
                          ]
           }
        }
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

You can export Theme in the most recent versions and investigate Json file, by the look of it it's not supported yet.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Also, you can customise a current theme and it looks like this property is not included as well.

image.png

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Anonymous
Not applicable

Ya thought I'd be able to do it via JSON even though it's not supported in the Themes preview.

Thanks!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.