开发者

.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. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜