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

发布于 2024-10-03 10:45:10 字数 600 浏览 0 评论 0原文

尝试遵循这个例子:
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),另一列是“DateTime”。我正在尝试在一张折线图上绘制 3 列与日期时间(X 轴)的图表。

要添加多个 y 轴值,我转到 Series 属性 -> YValueMembers(注意复数)并输入我想要在 Y 轴上的数据库的 3 列(后跟逗号)......但似乎不起作用。

我收到运行时错误,指出 Y 轴上只允许有 1 列。

数据点插入错误。只有 1 年 可以为此数据设置值 系列。

如何在一张折线图上获得所有 3 列与第 4 列?

谢谢!

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

祁梦 2024-10-10 10:45:10

明白了:

属性(图表)->系列(点击椭圆)->使用相同的 X 轴为 Y 轴上的每个元素添加一个新系列。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文