Forum Discussion

TejasMahind's avatar
TejasMahind
Frequent Visitor
3 years ago

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. 

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

  • JoBI's avatar
    JoBI
    Resolver II

    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). 

  • AbbasG's avatar
    AbbasG
    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,

     



  • mcburris's avatar
    mcburris
    Regular Visitor

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

     

     

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