Question

I'm in need of help please, I'm using MSChart for .NET4.0 WinForms in C Sharp and right now when I plot my chart the annotations are all over the place.

Callouts are all over the place! it's really messy!

What I really like is for this (I manually moved the Callouts after to make this screenshot)

Manually positioned Callout with mouse after chart render

So what I am wondering, is there a way I can make sure that ALL Callout annotations stay absolutely on top of bottom vertically of the respective datapoint anchor? I don't wish for the Callouts to move left or right....

Thanks everyone...

Was it helpful?

Solution

MSChart uses SmartLabel Technology to display labels.

You can change this property

Chart1.Series["Series1"].SmartLabels.MovingDirection =  
LabelAlignment.Bottom | LabelAlignment.Top; 

You can check these links

http://www.codeproject.com/Articles/24644/What-can-SmartLabels-Technology-do-for-me http://support2.dundas.com/OnlineDocumentation/WebChart2005/UsingSmartLabels.html http://msdn.microsoft.com/en-us/library/system.web.ui.datavisualization.charting.smartlabelstyle.aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top