I am creating a stacked column graph but am currently limited by the lack of label positioning for each series. There are not any custom properties which relate to alignment of label positioning, is there some other way to offset labels or align them for stacked charts?
Asked
Active
Viewed 3,969 times
4
-
Aren't the labels displayed within the columns ? What do you mean by offset, can you expand a bit more on that ? – V4Vendetta Nov 22 '11 at 05:06
-
Basically, I would like to be able to position the labels outside of their default position, like having a label appear to the right of the column. By offset, I mean being able to supply a manual value for alignment, such as specifying that all labels should appear ten pixels above where they should be. – Scott Simontis Nov 22 '11 at 15:45
-
Did you try with Custom properties of the series `LabelStyle=Right` ? – V4Vendetta Nov 23 '11 at 05:14
-
Yes. This has no effect with the stacked column type of graph. – Scott Simontis Nov 27 '11 at 22:46
2 Answers
2
By creating a dummy series and manually setting each label value you can reposition a stacked columns labels to either the top or bottom of the stack. It is limited, and certainly not what I would like, but it is the best I have found so far.
While the control used is different the best example of the concept I have found is here: total value of each column in a stacked column
Check out my blog post for more details and a better method of handling this: http://jeremeguenther.blogspot.com/2015/02/overlapping-columns-in-microsoft-aspnet.html

Jereme
- 630
- 6
- 18