简体   繁体   English

如何在Y轴上绘制多个列? (MS图表控件)

[英]How do I graph multiple columns on the Y-axis? (MS Chart Controls)

Trying to follow this example: 尝试遵循以下示例:
http://weblogs.asp.net/dwahlin/archive/2008/11/25/getting-started-with-the-asp-net-3-5-chart-control.aspx http://weblogs.asp.net/dwahlin/archive/2008/11/25/getting-started-with-the-asp-net-3-5-chart-control.aspx

I have a database with 4 columns, 3 of the columns are int (1-10) and the other is a "DateTime". 我有一个包含4列的数据库,其中3列是int(1-10),另一个是“ DateTime”。 I am trying to graph the 3 columns vs the DateTime(X-axis) on one line chart. 我正在尝试在一个折线图中绘制3列与DateTime(X轴)的关系图。

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. 要添加多个y轴值,请转到Series属性-> YValueMembers(注意复数),然后在Y轴上输入数据库的3列(后跟逗号)。似乎行得通。

I get a run time error saying only 1 column is allowed on the Y axis. 我收到一个运行时错误消息,说Y轴只允许1列。

Data points insertion error. 数据点插入错误。 Only 1 Y values can be set for this data series. 该数据系列只能设置1个Y值。

How do I get all 3 columns vs the 4th column on one line chart? 如何在一个折线图中获得所有3列与第4列的对比?

Thanks! 谢谢!

Got it: 得到它了:

Properties (of the chart) -> Series (click on ellipse) -> Add a new series for each element on the Y-axis, using the same X-axis. 属性(图表的)->系列(单击椭圆)->使用相同的X轴为Y轴上的每个元素添加新的序列。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM