Changeset 727 for trunk/sources/HeuristicLab.Visualization
- Timestamp:
- 11/09/08 21:55:21 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/ChartDataRowsModel.cs
r726 r727 26 26 public void AddDataRow(int id){ 27 27 28 double[] vals = new double[ ]{};28 double[] vals = new double[10]{4.0, 2.2, 0.2, 4, 18.2333, 1.1, 7, 99.99, 8, 2.6}; 29 29 30 30 ChartDataRowsModelColumn col = new ChartDataRowsModelColumn(id, vals); … … 35 35 public void PushData(int dataRowId, double value){ 36 36 37 columns[dataRowId].Values[columns[dataRowId].Values.Length+1] = value; 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 41 //} 42 43 //vals[vals.Length] = value; 44 //columns[dataRowId].Values = vals; 38 45 } 39 46 40 47 public override IView CreateView() { 48 //return new LineChart(this); when LineChart is implemented 41 49 return new IntDataView(test); 42 50 } … … 63 71 64 72 foreach (ChartDataRowsModelColumn column in Columns){ 65 XmlNode child = document.CreateNode(XmlNodeType.Element, "column", null); 66 child.InnerText = "xx"; 67 node.AppendChild(child); 73 XmlNode columnElement = document.CreateNode(XmlNodeType.Element, "column", null); 74 75 XmlAttribute idAttr = document.CreateAttribute("id"); 76 idAttr.Value = (column.ColumnId).ToString(); 77 columnElement.Attributes.Append(idAttr); 78 79 for (int i = 0; i < column.Values.Length; i++){ 80 columnElement.InnerText += column.Values[i].ToString() + ";"; 81 } 82 //columnElement.InnerText = "xx"; 83 node.AppendChild(columnElement); 68 84 } 69 85 -
trunk/sources/HeuristicLab.Visualization/ChartDataRowsModelDummy.cs
r726 r727 13 13 AddDataRow(2); 14 14 AddDataRow(3); 15 AddDataRow(4); 16 17 PushData(1, 1.2); 18 PushData(1, 2.0); 19 PushData(1, 4.5); 20 PushData(1, 8.4); 21 PushData(1, 5.0); 22 PushData(1, 6.0); 23 PushData(2, 2.0); 24 PushData(3, 8.3); 25 PushData(3, 7.3); 26 PushData(3, 9.7); 27 PushData(3, 2.3); 28 PushData(3, 1.7); 29 PushData(3, 0.3); 30 PushData(3, 0.1); 31 PushData(3, 2.0); 32 PushData(3, 8.8); 33 PushData(3, 9.9); 15 34 16 35 }
Note: See TracChangeset
for help on using the changeset viewer.