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
TejasMahind
Frequent Visitor

Spacing between Legends

Hi team,

I am looking to add some space between the legends to improve the look from a UX perspective. Currently I have used the default legends for a stacked bar. 

Legend spacing.png

Fr example, here the state names in legends are too cluttered and I wanted to increase the spacing between them. I am attaching the pbix file location for reference. Please do let me know if any other information is needed. Thanks!

 

File location: https://drive.google.com/file/d/10TUUDaKXraj_njwRtKb-iMlS2uK9Agbq/view?usp=sharing

3 REPLIES 3
mcburris
New Member

Select your graph, go to your axis labels, and add spaces after the label name.

 

mcburris_1-1712073186228.png

 

I added a couple of spaces here to each of my values, and it spaced out my legend values more. Hope this helps!

AbbasG
Memorable Member
Memorable Member

@TejasMahind there is no in-built solution for this, you can try checking custom visual or

you can increase the size of the legend to make it more readable,

AbbasG_0-1683632539165.png

 



JoBI
Resolver I
Resolver I

Hi TejasMahind
As fas I know this is not possible from the visual formatting pane. You could try to create another column in your dataset adding spaces at the end using UNICHAR(127) (space character) and REPT function.
For example State_legend = State & REPT(UNICHAR(127),3). 

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.