Question

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?

Était-ce utile?

La solution

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

Autres conseils

last paragraph from the msdn : link

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top