如何解决在Microsoft图表控件X轴的长度值 [英] How to Fix the X Axis values length in Microsoft chart controls

查看:136
本文介绍了如何解决在Microsoft图表控件X轴的长度值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的例子,我做了X轴旋转到-90。现在,标签值是垂直的。
有些价值是巨大的,如样品行情。

In My sample, I make the X axis to rotate to -90. Now the label values are vertical. Some of the values are huge like "Sample Quotes".

由于这种巨大的价值,我的标签面积增加及图表面积减少。

Due to this huge values, My label area is increased and chart area is decreased.

是否有可能修复的Microsoft图表控件X轴标签长度?

Is it possible to fix the X axis label length in Microsoft chart controls?

推荐答案

我得到了答案这个问题。

I got the answer for this question.

这是可以通过

       MSChart.ChartAreas[0].AxisX.LabelAutoFitStyle = LabelAutoFitStyles.WordWrap;
       MSChart.ChartAreas[0].AxisX.IsLabelAutoFit = true;

问候,
KARTHIK

Regards, Karthik

这篇关于如何解决在Microsoft图表控件X轴的长度值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆