您的位置:首页 > 其它

How to set the width of columns?about chart control for .net

2009-03-10 22:28 761 查看
sorry,my english is poor!

哈哈,第一次用英文提问,这是我的开场白。描述中,语法上一定漏洞百出,不过还是很快得到了答案,看来,外国朋友还是能看懂我的中国式英语。

我的问题是有关chart control for .net的,想解决在柱形图时,图形宽度的控制。因为,如果任由其自动安排的话,如果x轴的项目很少,显示的柱形图会很宽,用户觉得不太满意。

网友peter给出了这样的答案:



If you want to specify the number of pixels, you can do something like this:

chart1.Series[0]"PixelPointWidth"] = "20";



Or if you want to set the width based on the size of the space between the intervals, you can do something like this:

chart1.Series[0]["PointWidth"] = "0.5";



最终,我选择了第一种方法,基本解决了我的问题。

最后,感谢peter,感谢internet,感谢所有www。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: