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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
BetoZM
New Member

Change size of space between visuals and legend in Chart

Hello Everyone!

I've encoutered a problem trying to separate each Column from a Stacked Column Chart into a single one, I know that there might be better options but this is what we got...

 

BetoZM_1-1673306844175.png

Is there any way to change the size of these blank spaces?

I'm trying to keep the column as big as posible but with it's legend closer, every time I try to do it by dragging the window the graph becomes smaller or the legend becomes unreadable.

I'm not that experienced with PBI so maybe it's obvious and I'm missing something.

 

Thanks!

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @BetoZM ,

 

There is always some white space that is inputed, taking into account your description I assume you are getting a single column by filtering out the values of the x-axis.

 

I see two alternatives:

  • Remove the X-Axis category but continue with the filter on the visualization then add the X-axis title manually that will allow to keep the bar with some big size

You can see below that the charts are identically in size but the gaps are smaller on the one of the rigth

MFelix_0-1673311040481.png

 

  • Second option is to create a table or another type of visualization that simulates the legend and you can place where you need.

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @BetoZM ,

 

There is always some white space that is inputed, taking into account your description I assume you are getting a single column by filtering out the values of the x-axis.

 

I see two alternatives:

  • Remove the X-Axis category but continue with the filter on the visualization then add the X-axis title manually that will allow to keep the bar with some big size

You can see below that the charts are identically in size but the gaps are smaller on the one of the rigth

MFelix_0-1673311040481.png

 

  • Second option is to create a table or another type of visualization that simulates the legend and you can place where you need.

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



I had to do the second option, create another chart that will take care of the legend, then make the main chart where the column is without Background so ir can be as close as posible.

There should be a way to change these kinds of spaces, since sometimes are unnecessary at most.

 

Thanks for the help though!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors