Changeset 728 for trunk/sources/HeuristicLab.Visualization
- Timestamp:
- 11/09/08 22:26:42 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/ChartDataRowsModel.cs
r727 r728 26 26 public void AddDataRow(int id){ 27 27 28 double[] vals = new double[ 10]{4.0, 2.2, 0.2, 4, 18.2333, 1.1, 7, 99.99, 8, 2.6};28 double[] vals = new double[0]; 29 29 30 30 ChartDataRowsModelColumn col = new ChartDataRowsModelColumn(id, vals); … … 35 35 public void PushData(int dataRowId, double value){ 36 36 37 //double[] vals = new double[columns[dataRowId].Values.Length+1];38 //for (int i = 0; i < columns[dataRowId].Values.Length; i++ ){39 //vals[i] = columns[dataRowId].Values[i];37 double[] vals = new double[columns[dataRowId].Values.Length + 1]; 38 for (int i = 0; i < columns[dataRowId].Values.Length; i++) { 39 vals[i] = columns[dataRowId].Values[i]; 40 40 41 //}42 43 //vals[vals.Length] = value;44 //columns[dataRowId].Values = vals;41 } 42 43 vals[vals.Length-1] = value; 44 columns[dataRowId].Values = vals; 45 45 } 46 46
Note: See TracChangeset
for help on using the changeset viewer.