Forum Discussion
How to make data labels really outside end?
I create the following stacked bar chart (without adding Legend). I have made the position of Data Lables 'Outside end', but how to make the data labels really outside end (i.e. not interlace the end)?
13 Replies
- AdamAbberfieldFrequent Visitor
How is it that this has not been fixed!!! imho it is simply the "Auto" axis limit not giving a buffer when outside end data labels are on !!
I have been searching for a true resolution for this all day and i am only seeing silly workarounds like adding a measure with +10% and making that the limit or set a hard limit or adding a hidden value (from a measure) none of these are SOLUTIONS they are all workarounds to a stupid BUG.
yes i am frustrated.... i do no want to have to create countless measures and add them to my charts axis limits to make a simple visual BUG go away....
and no hard limits are not an option becuase slicers and parameters are a thing.... and the chart's required axis maximum can go from 10000+ down to basically 1 and a hard set max makes for a really garbage user experience.
and yes this seems to happen on bar and column charts....
- VizzCrafterFrequent Visitor
I believe I've discovered a solution, specifically applicable to basic bar charts. Hope it helps.
1. Create a "Stacked bar chart" ; Note that the "Outside end" feature does not function flawlessly.
2. Create a measure with a value of zero.
3. Place the new measure on the X-axis -> Turn On "Total labels" ->Turn Off "Data labels". Refer to the highlighted sections below.
- parry2kSuper User
Anonymous I don;t think there is much available in this case. You can surely create matrix with databars and values in a seperate column. It can achieve what you are looking for.
May be add this as a suggestion on ideas forum.
- amitchandakSuper User
There two quick option I can think of now are
1. Increase the size of the graph a bit
2. Fix the X-axis values.(Start and End)
- AnonymousNot applicable
amitchandak I can't use the X-axis values (Start and End) because the chart is dynamic according to the filters...
- AnonymousNot applicable
Hi Anonymous,
Could you please try to complete the following steps(check below screenshot) to check if all data labels can display at the outside end?
- Select the related stacked bar chart
- Navigate to “Format” pane, find X axis tab
- Set the proper value for “Start” and “End” textbox
Best Regards
Rena
- kaydenFrequent Visitor
I am facing the same issue and definitely this is something to do with the code inbuilt with powerBI, im quite shocked no one else has sounded this out given how old PowerBI is
- VisheshRockStarNew Member
Hi All,
You can fix this issue by creating the X axis maximum measure .This issue generally happens bz chart have lower magrin w.r.t the bars .
So create a measure which returns the max axis value and add some margin to it.
Ex- If max age is 60 in the chart and it is overlapping it. you can do in similar way
Measure= Max(Age)+5
Note-I have take 5 as a margin
And pull this measure in the X axis Maximum range.
Best Regard,Vishesh
- parry2kSuper User
VisheshRockStar this technique will only work if a number column is used on the x-axis. A good solution though but will not work in all cases.
- NoaruNew Member
You can increase space on the right by increase number of decimal places of your measure.
- AnonymousNot applicable
I have the same problem, it is very simple for PBI to implement something like adding some margin to the bar and label. Did you fix it?