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

和自甴很熟 提交于 2020-01-01 03:42:10

问题


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

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.

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.

I get a run time error saying only 1 column is allowed on the Y axis.

Data points insertion error. Only 1 Y values can be set for this data series.

How do I get all 3 columns vs the 4th column on one line chart?

Thanks!


回答1:


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.



来源:https://stackoverflow.com/questions/4231547/how-do-i-graph-multiple-columns-on-the-y-axis-ms-chart-controls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!