- Timestamp:
- 06/18/15 11:56:31 (9 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:mergeinfo changed
/trunk/sources (added) merged: 12442-12443,12445,12455-12458,12461,12463-12465 -
Property
svn:global-ignores
set to
*.nuget
packages
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Analysis.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Analysis.Views (added) merged: 12458
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Analysis.Views/3.3/HistogramControl.Designer.cs
r12143 r12467 48 48 private void InitializeComponent() { 49 49 this.components = new System.ComponentModel.Container(); 50 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea 1= new System.Windows.Forms.DataVisualization.Charting.ChartArea();51 System.Windows.Forms.DataVisualization.Charting.Legend legend 1= new System.Windows.Forms.DataVisualization.Charting.Legend();52 System.Windows.Forms.DataVisualization.Charting.Series series 1= new System.Windows.Forms.DataVisualization.Charting.Series();50 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); 51 System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); 52 System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); 53 53 this.chart = new HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart(); 54 54 this.binsNumericUpDown = new System.Windows.Forms.NumericUpDown(); … … 57 57 this.label2 = new System.Windows.Forms.Label(); 58 58 this.bandwidthNumericUpDown = new System.Windows.Forms.NumericUpDown(); 59 this.noDataLabel = new System.Windows.Forms.Label(); 59 60 ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit(); 60 61 ((System.ComponentModel.ISupportInitialize)(this.binsNumericUpDown)).BeginInit(); … … 67 68 | System.Windows.Forms.AnchorStyles.Left) 68 69 | System.Windows.Forms.AnchorStyles.Right))); 69 chartArea 1.Name = "ChartArea1";70 this.chart.ChartAreas.Add(chartArea 1);71 legend 1.Alignment = System.Drawing.StringAlignment.Center;72 legend 1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top;73 legend 1.Name = "Default";74 this.chart.Legends.Add(legend 1);70 chartArea2.Name = "ChartArea1"; 71 this.chart.ChartAreas.Add(chartArea2); 72 legend2.Alignment = System.Drawing.StringAlignment.Center; 73 legend2.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top; 74 legend2.Name = "Default"; 75 this.chart.Legends.Add(legend2); 75 76 this.chart.Location = new System.Drawing.Point(0, 27); 76 77 this.chart.Name = "chart"; 77 series 1.ChartArea = "ChartArea1";78 series 1.Legend = "Default";79 series 1.Name = "Series1";80 this.chart.Series.Add(series 1);78 series2.ChartArea = "ChartArea1"; 79 series2.Legend = "Default"; 80 series2.Name = "Series1"; 81 this.chart.Series.Add(series2); 81 82 this.chart.Size = new System.Drawing.Size(465, 336); 82 83 this.chart.TabIndex = 0; … … 159 160 this.bandwidthNumericUpDown.ValueChanged += new System.EventHandler(this.bandwidthNumericUpDown_ValueChanged); 160 161 // 162 // noDataLabel 163 // 164 this.noDataLabel.Anchor = System.Windows.Forms.AnchorStyles.None; 165 this.noDataLabel.AutoSize = true; 166 this.noDataLabel.Location = new System.Drawing.Point(163, 175); 167 this.noDataLabel.Name = "noDataLabel"; 168 this.noDataLabel.Size = new System.Drawing.Size(139, 13); 169 this.noDataLabel.TabIndex = 22; 170 this.noDataLabel.Text = "No data could be displayed."; 171 // 161 172 // HistogramControl 162 173 // 163 174 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 175 this.Controls.Add(this.noDataLabel); 164 176 this.Controls.Add(this.label2); 165 177 this.Controls.Add(this.bandwidthNumericUpDown); … … 186 198 private System.Windows.Forms.Label label2; 187 199 private System.Windows.Forms.NumericUpDown bandwidthNumericUpDown; 200 private System.Windows.Forms.Label noDataLabel; 188 201 } 189 202 } -
branches/HiveStatistics/sources/HeuristicLab.Analysis.Views/3.3/HistogramControl.cs
r12173 r12467 139 139 if (!point.Value.Any()) continue; 140 140 141 Series histogramSeries = new Series(point.Key);142 chart.Series.Add(histogramSeries);143 141 double minValue = point.Value.Min(); 144 142 double maxValue = point.Value.Max(); 145 143 double intervalWidth = (maxValue - minValue) / bins; 146 144 if (intervalWidth <= 0) continue; 145 146 Series histogramSeries = new Series(point.Key); 147 chart.Series.Add(histogramSeries); 147 148 148 149 if (!exactCheckBox.Checked) { … … 172 173 } 173 174 175 if (chart.Series.Any()) { 176 noDataLabel.Visible = false; 177 } else { 178 noDataLabel.Visible = true; 179 } 180 174 181 ChartArea chartArea = chart.ChartAreas[0]; 175 182 // don't show grid lines for second y-axis
Note: See TracChangeset
for help on using the changeset viewer.