C#的界面的图形显示

zihaozhang9 2017-03-25 06:47:17
有没有知道像这种波形显示的图用什么控件?
...全文
900 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
你隔壁王大爷 2017-03-27
  • 打赏
  • 举报
回复
Chart 就是把网格线去掉,背景颜色,线条点颜色这些属性设置下
zihaozhang9 2017-03-26
  • 打赏
  • 举报
回复
引用 8 楼 shingoscar 的回复:
去搜下chart的使用教程吧,属性太多
就是用VS自带的控件就可以很方便的实现了吧,用不着FusionCharts、HighChart等插件了吧。刚用VS两天。。。
zihaozhang9 2017-03-26
  • 打赏
  • 举报
回复
引用 7 楼 xuggzu 的回复:
winform下画曲线不熟悉,所以无法帮,不过现有的常用曲线控件百度肯定有例子。
那问一下,fusioncharts HighChart这种插件VS的WIN窗体应用程序或WPF可以用吗
  • 打赏
  • 举报
回复
引用 1 楼 shingoscar 的回复:
Chart
还是比较认同这个,自己画还是算了,你还是就找这个资料吧。
xuggzu 2017-03-26
  • 打赏
  • 举报
回复
楼主说的那两个还真没用过。市面上画曲线的组件很多,大公司的组件一般都有winform和wpf两个版本,小公司或者个人产品一般只针对一个开发环境。比如dynamicdatadisplay是个人开发的只针对wpf。微软的chart就有两个版本。建议楼主找个大家常用的组件,例子多,也可找到破解版。winform下dev和微软的chart就可以。
xuzuning 2017-03-26
  • 打赏
  • 举报
回复
盘熟 chart 也得十天半个月
Poopaye 2017-03-25
  • 打赏
  • 举报
回复
去搜下chart的使用教程吧,属性太多
xuggzu 2017-03-25
  • 打赏
  • 举报
回复
winform下画曲线不熟悉,所以无法帮,不过现有的常用曲线控件百度肯定有例子。
zihaozhang9 2017-03-25
  • 打赏
  • 举报
回复
引用 2 楼 xuggzu 的回复:
挺多的,winform下有微软的chart,dev的chartcontrol等。wpf下就更多了,mschart,dynamicdatadisply,abt scichart,visifire chart等等。
要哭了,根本没学过,却要用C#做个上位机。要买本书看了。有推荐吗
zihaozhang9 2017-03-25
  • 打赏
  • 举报
回复
引用 3 楼 xuzuning 的回复:
你这是私人定制的(自己画就可以) 用通用的控件得不偿失
啊,控件还可以画?用VS怎么画
zihaozhang9 2017-03-25
  • 打赏
  • 举报
回复
引用 1 楼 shingoscar 的回复:
Chart
这个chart设置属性就可以这样么。我弄了半天也没发现怎么改成这种图。
从网上下载了一个程序

如图左面那个是chart做的线图,我自己拖出来右边的 是柱状图。
然后我发现它好像改的是.Designer.cs文件里的初始化,如下 chartDemo0,不知道是那几句话
private void InitializeComponent()
{
System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend();
System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend();
System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series();
this.chartDemo0 = new System.Windows.Forms.DataVisualization.Charting.Chart();
this.chartDemo = new System.Windows.Forms.DataVisualization.Charting.Chart();
((System.ComponentModel.ISupportInitialize)(this.chartDemo0)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chartDemo)).BeginInit();
this.SuspendLayout();
//
// chartDemo0
//
chartArea1.Name = "ChartArea1";
this.chartDemo0.ChartAreas.Add(chartArea1);
legend1.Name = "Legend1";
this.chartDemo0.Legends.Add(legend1);
this.chartDemo0.Location = new System.Drawing.Point(2, 21);
this.chartDemo0.Name = "chartDemo0";
series1.ChartArea = "ChartArea1";
series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline;
series1.IsXValueIndexed = true;
series1.Legend = "Legend1";
series1.Name = "test";
series1.XValueType = System.Windows.Forms.DataVisualization.Charting.ChartValueType.Time;
this.chartDemo0.Series.Add(series1);
this.chartDemo0.Size = new System.Drawing.Size(354, 301);
this.chartDemo0.TabIndex = 0;
this.chartDemo0.Text = "chartDemo";
//
// chartDemo
//
chartArea2.Name = "ChartArea1";
this.chartDemo.ChartAreas.Add(chartArea2);
legend2.Name = "Legend1";
this.chartDemo.Legends.Add(legend2);
this.chartDemo.Location = new System.Drawing.Point(362, 21);
this.chartDemo.Name = "chartDemo";
series2.ChartArea = "ChartArea1";
series2.Legend = "Legend1";
series2.Name = "Series1";
this.chartDemo.Series.Add(series2);
this.chartDemo.Size = new System.Drawing.Size(354, 308);
this.chartDemo.TabIndex = 1;
this.chartDemo.Text = "chart1";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(799, 395);
this.Controls.Add(this.chartDemo);
this.Controls.Add(this.chartDemo0);
this.Name = "Form1";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize)(this.chartDemo0)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.chartDemo)).EndInit();
this.ResumeLayout(false);

}
xuzuning 2017-03-25
  • 打赏
  • 举报
回复
你这是私人定制的(自己画就可以) 用通用的控件得不偿失
xuggzu 2017-03-25
  • 打赏
  • 举报
回复
挺多的,winform下有微软的chart,dev的chartcontrol等。wpf下就更多了,mschart,dynamicdatadisply,abt scichart,visifire chart等等。
Poopaye 2017-03-25
  • 打赏
  • 举报
回复
Chart

110,538

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧