vb.net 中 Windows 窗体应用程序中的线图

发布于 2024-09-24 04:40:15 字数 131 浏览 0 评论 0原文

使用 vs2008 我试图在 Windows 窗体中使用 vb 创建折线图。我已将图表拖到窗体上,并通过属性窗口,通过系列选项将类型更改为我想要的图表,即线条。但数据始终显示为简单的条形图。我该如何解决这个问题以获得我想要的图表类型。感谢大家的帮助

using vs2008 I am trying to create a line graph using vb in a windows form. I have dragged a chart onto the form, and via the properties window, through the series option have changed the type to the graph that I want, which is line. But all the time the data is displayed as a simple bar chart. How do I remedy this please to get the type of chart that I want. Thanks for all and any help

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

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

发布评论

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

评论(1

请你别敷衍 2024-10-01 04:40:15

啊天啊我终于找到答案了。该图表最初是通过设计器放在表单上的,但是随着数据的更改,我重新绘制了整个图表,但没有意识到我必须包含行 Form1.ChartPlayer1.Series("Series2").ChartType = SeriesChartType.Line

无论如何,谢谢对于所有看过的人,我意识到,由于问题的模糊性,很难提供帮助,但至少现在已经解决了。

Ah blimey at last I've the answer. The graph was originally put on the form via the designer, but as the data changed I redrew the entire graph not realising that I had to include the line Form1.ChartPlayer1.Series("Series2").ChartType = SeriesChartType.Line

Anyway, thanks to all who looked, I realise that from the vagueness of the question it was hard to help, but at least its solved now.

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