vb.net 中 Windows 窗体应用程序中的线图
使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
啊天啊我终于找到答案了。该图表最初是通过设计器放在表单上的,但是随着数据的更改,我重新绘制了整个图表,但没有意识到我必须包含行 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.