سؤال

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

نصائح أخرى

last paragraph from the msdn : link

you might wanna check out the SmartLabelStyle altough I've never used it with column chart type. link

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top