Changeset 3495 for trunk/sources
- Timestamp:
- 04/22/10 20:39:46 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs
r3454 r3495 119 119 series.ToolTip = "#VAL"; 120 120 for (int i = 0; i < row.Values.Count; i++) { 121 if (double.IsNaN(row.Values[i])) { 121 var value = row.Values[i]; 122 if (double.IsNaN(value) || value < (double)decimal.MinValue || value > (double)decimal.MaxValue) { 122 123 DataPoint point = new DataPoint(); 123 124 point.IsEmpty = true; 124 125 series.Points.Add(point); 125 126 } else { 126 series.Points.Add( row.Values[i]);127 series.Points.Add(value); 127 128 } 128 129 } … … 223 224 DataRow row = valuesRowsTable[(IObservableList<double>)sender]; 224 225 foreach (IndexedItem<double> item in e.Items) { 225 if (double.IsNaN(item.Value)) { 226 var value = item.Value; 227 if (double.IsNaN(value) || value < (double)decimal.MinValue || value > (double)decimal.MaxValue) { 226 228 DataPoint point = new DataPoint(); 227 229 point.IsEmpty = true; 228 230 chart.Series[row.Name].Points.Insert(item.Index, point); 229 231 } else { 230 chart.Series[row.Name].Points.InsertY(item.Index, item.Value);232 chart.Series[row.Name].Points.InsertY(item.Index, value); 231 233 } 232 234 }
Note: See TracChangeset
for help on using the changeset viewer.