Chart Controls: Stacked Column Series Label Positioning
-
05-03-2021 - |
سؤال
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?
المحلول
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