.NET Chart Control - Axis X Text Rotation
H开发者_StackOverflow社区ow do I rotate the text orientation of the text on the X Axiz of the Microsoft ASP.NET Chart Control? I am using .NET 4.
Is this done under the Series?
MyChart.ChartAreas[0].AxisX.LabelStyle.Angle = -90; // Can vary from -90 to 90.
If you also need to change text orientation of Value text in series, you can set up as below:
MyChart.Series[0].SmartLabelStyle.Enabled = false;
MyChart.Series[0].LabelAngle = 90; // Can vary from -90 to 90;
I hope this is useful for you. :)
精彩评论