在图表控件中显示条形图 [英] To show bar chart in chart control
本文介绍了在图表控件中显示条形图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在应用程序中使用MS图表控件.在这种情况下,我使用柱形图显示我的数据.但是我想将柱形图显示为垂直竖线.我想减少图表中的列宽.
所以有什么属性可以做..
有人可以帮助我吗?
I am using MS chart control in my application. in that i using column chart to show my data.But i want to show column chart as strigth vertical line.ie. i want to reduce the width of columns in chart.
so is there any property to do that..
can anybody help me
推荐答案
您应该查看免费的MS提供的示例, ^ ].有一些示例说明了如何使用MS Chart控件执行许多操作.
如果您有柱形图或条形图,则可以使用以下行设置宽度.
You should look at the free Samples from MS available here[^]. There are examples of how to do many things with MS Chart controls.
If you have a column or bar chart you can set the width with the following line.
float newWidth = 1;
chart1.Series["Default"]["PointWidth"] = newWidth;
对于非常小的列/栏,请尝试使用0.1的宽度;
For a really small column/bar try a width of 0.1;
这篇关于在图表控件中显示条形图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文