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。
哈哈,第一次用英文提问,这是我的开场白。描述中,语法上一定漏洞百出,不过还是很快得到了答案,看来,外国朋友还是能看懂我的中国式英语。
我的问题是有关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。
相关文章推荐
- 如何给上传控件上色【HOW TO SET CSS FOR THE CONTROL OF FILEUPLOAD】
- Here's an example that shows how to enumerate through the features of a selection set, returning the value of each field in the attribute table except for the geometry colum.
- A way to control the width of columns and bars (RDL)
- [转]How to set the control word of FPU in delphi
- How to set bmp for your UserControl in the toolbox
- How To List All The Named Events Set For A Database
- How to set the DefaultButton in a Page Based on ASP.NET Master Page
- How to customize the context menus of a WebBrowser control via the IDocHostUIHandler interface.
- How to calculate the SVG Path for an arc (of a circle)
- How to customize authentication to my own set of tables in asp.net web api 2?
- How to use .NET Windows Control into the WPF Application
- How to check the usage of net ports in linux?
- How to give custom labels to x axis of chart control?
- About:How to write the declaration of pointers and references rightly.
- How To Call Run() Method of the Microsoft Script Control in C++
- How to Set the Ulimit Values for…
- How to spawn a process that runs under the context of the impersonated user in Microsoft ASP.NET pages
- how to set cornerRadius for only top-left and top-right corner of a UIView?
- How To List All The Named Events Set For A Database [ID 436036.1]
- CodeSnip: How to Get Id of the Record Using ASP.NET and SQL Server 2000