MS Chart控件宽度 [英] MS Chart control width

查看:90
本文介绍了MS Chart控件宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用VS2010随附的MS图表控件.
我有一个StackedColumn图表,其中有4条.

我已经调整了图表区域的内部位置属性,但是,图表在左侧和右侧仍然保留了一定的空白空间,这实际上是在浪费我正在设计的网页上的空间.

谁能帮我压缩图表,以免侧面浪费空间?

问候
Joe

Hi,

I''m using MS chart control that comes with VS2010.
I have one StackedColumn chart with 4 Bars.

I have adjusted the inner position property of the chart area, however, the chart still keeps some amount of blank space on the left and right which is actually wasting the space on the webpage that I am designing.

Could anyone help me on how to compact the chart so that there is no space wasted on the sides?

Regards
Joe

推荐答案



尝试下面的代码..

Hi,

try the below piece of code..

//To position Inner plotting area in % of  chart
          Chart1.ChartAreas[0].InnerPlotPosition.Auto = false;
          Chart1.ChartAreas[0].InnerPlotPosition.Width = 100;
          Chart1.ChartAreas[0].InnerPlotPosition.Height = 100;


这篇关于MS Chart控件宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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