我如何绘制在Y轴的多个列? (MS图表控件) [英] How do I graph multiple columns on the Y-axis? (MS Chart Controls)
问题描述
试图以此为榜样:结果
<一href=\"http://weblogs.asp.net/dwahlin/archive/2008/11/25/getting-started-with-the-asp-net-3-5-chart-control.aspx\" rel=\"nofollow\">http://weblogs.asp.net/dwahlin/archive/2008/11/25/getting-started-with-the-asp-net-3-5-chart-control.aspx
我有4列的数据库,列3是INT(1-10),而另一个是一个日期时间。我试图一条线图上绘制的3列VS日期时间(X轴)。
I have a database with 4 columns, 3 of the columns are int (1-10) and the other is a "DateTime". I am trying to graph the 3 columns vs the DateTime(X-axis) on one line chart.
要添加一个以上的Y轴值我去series属性 - > YValueMembers(注意复数形式),并进入我的数据库(后面跟逗号)的3列,我想在Y轴上.....但似乎并没有工作。
To add more than one y axis value I go to the Series property -> YValueMembers (notice the plural) and enter my 3 columns of the database (followed by commas) that I want on the Y axis.....but doesn't seem to work.
我得到一个运行时错误说只有1列可以在Y轴上。
I get a run time error saying only 1 column is allowed on the Y axis.
数据点插入错误。只有1 Y
值可以为这个数据被设置
系列。
Data points insertion error. Only 1 Y values can be set for this data series.
我如何得到所有3列VS第4列一条线图上?
How do I get all 3 columns vs the 4th column on one line chart?
谢谢!
推荐答案
明白了:
(的图表)属性 - >系列(点击椭圆) - >添加新系列在Y轴的每个元素,使用相同的X轴。
Properties (of the chart) -> Series (click on ellipse) -> Add a new series for each element on the Y-axis, using the same X-axis.
这篇关于我如何绘制在Y轴的多个列? (MS图表控件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!