Trend Chart 구현

This commit is contained in:
2017-06-19 19:22:33 +09:00
parent 907d61ec1e
commit 7603deef0d
5 changed files with 270 additions and 5 deletions

View File

@@ -28,23 +28,85 @@
/// </summary>
private void InitializeComponent()
{
this.trendChart = new LiveCharts.WinForms.CartesianChart();
this.rbHumidity = new System.Windows.Forms.RadioButton();
this.rbTemp = new System.Windows.Forms.RadioButton();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// trendChart
//
this.trendChart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.trendChart.Location = new System.Drawing.Point(8, 59);
this.trendChart.Name = "trendChart";
this.trendChart.Size = new System.Drawing.Size(742, 603);
this.trendChart.TabIndex = 0;
this.trendChart.Text = "trendChart";
//
// rbHumidity
//
this.rbHumidity.Appearance = System.Windows.Forms.Appearance.Button;
this.rbHumidity.AutoSize = true;
this.rbHumidity.Checked = true;
this.rbHumidity.Location = new System.Drawing.Point(6, 19);
this.rbHumidity.Name = "rbHumidity";
this.rbHumidity.Size = new System.Drawing.Size(64, 22);
this.rbHumidity.TabIndex = 1;
this.rbHumidity.TabStop = true;
this.rbHumidity.Text = "Humidity";
this.rbHumidity.UseVisualStyleBackColor = true;
this.rbHumidity.CheckedChanged += new System.EventHandler(this.rbHumidity_CheckedChanged);
//
// rbTemp
//
this.rbTemp.Appearance = System.Windows.Forms.Appearance.Button;
this.rbTemp.AutoSize = true;
this.rbTemp.Location = new System.Drawing.Point(76, 20);
this.rbTemp.Name = "rbTemp";
this.rbTemp.Size = new System.Drawing.Size(87, 22);
this.rbTemp.TabIndex = 1;
this.rbTemp.Text = "Temperature";
this.rbTemp.UseVisualStyleBackColor = true;
this.rbTemp.CheckedChanged += new System.EventHandler(this.rbTemp_CheckedChanged);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.rbHumidity);
this.groupBox1.Controls.Add(this.rbTemp);
this.groupBox1.ForeColor = System.Drawing.SystemColors.ControlText;
this.groupBox1.Location = new System.Drawing.Point(8, 3);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(322, 50);
this.groupBox1.TabIndex = 2;
this.groupBox1.TabStop = false;
//
// PanelTrendGraph
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(284, 261);
this.ClientSize = new System.Drawing.Size(762, 674);
this.ControlBox = false;
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.trendChart);
this.HideOnClose = true;
this.Name = "PanelTrendGraph";
this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.Document;
this.TabText = "Trend Graph";
this.Text = "Trend Graph";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private LiveCharts.WinForms.CartesianChart trendChart;
private System.Windows.Forms.RadioButton rbHumidity;
private System.Windows.Forms.RadioButton rbTemp;
private System.Windows.Forms.GroupBox groupBox1;
}
}