bs0d
Well-known Member
- Joined
- Dec 29, 2006
- Messages
- 622
I have a clustered stacked column chart. The stacked columns are set to 0% gap width, so they actually appear side-by-side rather than on top of each other. This works wells for me, except when it comes to data labels. Because the series are defined as stacked, the option for "outside end" is not available. I would like for the data labels to appear just above each bar. I believe I need to incorporate a VBA routine that sets the label position above the value of the bar because the chart is also dynamic. That is, the data changes based on other selections I make in the workbook. So if I manually drag the labels above the value, they can be wildly out of proportion once the data changes.
Can you still use VBA to apply an outside end position for chart labels even if it's not available through the Excel GUI?
or - Can someone show me an example of a loop that will cycle through the chart series and each value, and set the label position a relative position above the series value, such as value + 5 pixels?
Please let me know if the background or request is unclear in any way.
Thanks,
Can you still use VBA to apply an outside end position for chart labels even if it's not available through the Excel GUI?
or - Can someone show me an example of a loop that will cycle through the chart series and each value, and set the label position a relative position above the series value, such as value + 5 pixels?
Please let me know if the background or request is unclear in any way.
Thanks,