Index: trunk/sources/HeuristicLab.Visualization/ChartDataRowsModelDataCollector.cs
===================================================================
--- trunk/sources/HeuristicLab.Visualization/ChartDataRowsModelDataCollector.cs	(revision 874)
+++ trunk/sources/HeuristicLab.Visualization/ChartDataRowsModelDataCollector.cs	(revision 874)
@@ -0,0 +1,83 @@
+#region License Information
+/* HeuristicLab
+ * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
+ *
+ * This file is part of HeuristicLab.
+ *
+ * HeuristicLab is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * HeuristicLab is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
+ */
+#endregion
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Drawing;
+using HeuristicLab.Core;
+using HeuristicLab.Data;
+
+namespace HeuristicLab.Visualization {
+  /// <summary>
+  /// Collects values of specific variable names in a given scope and feeds them into a ChartDataRowsModel.
+  /// </summary>
+  public class ChartDataRowsModelDataCollector : OperatorBase {
+    /// <inheritdoc select="summary"/>
+    public override string Description {
+      get { return @"Collects values of specific variable names in a given scope and feeds them into a ChartDataRowsModel."; }
+    }
+
+    /// <summary>
+    /// Initializes a new instance of <see cref="ChartDataRowsModelDataCollector"/> with two variable infos 
+    /// (<c>VariableNames</c> and <c>Values</c>).
+    /// </summary>
+    public ChartDataRowsModelDataCollector() {
+      IVariableInfo variableNamesVariableInfo = new VariableInfo("VariableNames", "Names of variables whose values should be collected", typeof(ItemList<StringData>), VariableKind.In);
+      variableNamesVariableInfo.Local = true;
+      AddVariableInfo(variableNamesVariableInfo);
+      ItemList<StringData> variableNames = new ItemList<StringData>();
+      AddVariable(new Variable("VariableNames", variableNames));
+      AddVariableInfo(new VariableInfo("Model", "Data model in which the collected values should be fed.", typeof(IChartDataRowsModel), VariableKind.New | VariableKind.In | VariableKind.Out));
+    }
+
+    /// <summary>
+    /// Collects the values of a specified list of variable names in the given <paramref name="scope"/>.
+    /// </summary>
+    /// <param name="scope">The scope where to collect the values from.</param>
+    /// <returns><c>null</c>.</returns>
+    public override IOperation Apply(IScope scope) {
+      ItemList<StringData> names = GetVariableValue<ItemList<StringData>>("VariableNames", scope, false);
+      IChartDataRowsModel model = GetVariableValue<IChartDataRowsModel>("Model", scope, true, false);
+
+      // if necessary, add a new model
+      if (model == null) {
+        model = new ChartDataRowsModel();
+        for (int i = 0; i < names.Count; i++)
+          model.AddDataRow(new DataRow(names[i].Data));  // create new data row for each variable name to collect
+
+        IVariableInfo info = GetVariableInfo("Model");
+        if (info.Local)
+          AddVariable(new Variable(info.ActualName, model));
+        else
+          scope.AddVariable(new Variable(scope.TranslateName(info.FormalName), model));
+      }
+
+      // collect data values and feed them into the model
+      for (int i = 0; i < names.Count; i++) {
+        DoubleData data = scope.GetVariableValue(names[i].Data, true) as DoubleData;
+        if (data != null)
+          model.Rows[i].AddValue(data.Data);
+      }
+      return null;
+    }
+  }
+}
Index: trunk/sources/HeuristicLab.Visualization/HeuristicLab.Visualization.csproj
===================================================================
--- trunk/sources/HeuristicLab.Visualization/HeuristicLab.Visualization.csproj	(revision 873)
+++ trunk/sources/HeuristicLab.Visualization/HeuristicLab.Visualization.csproj	(revision 874)
@@ -4,5 +4,5 @@
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProductVersion>9.0.30729</ProductVersion>
+    <ProductVersion>9.0.21022</ProductVersion>
     <SchemaVersion>2.0</SchemaVersion>
     <ProjectGuid>{E392A1E2-DC95-4E33-B82E-8ED690EDA1AB}</ProjectGuid>
@@ -80,4 +80,5 @@
     <Compile Include="ChartDataRowsModelDummy.cs" />
     <Compile Include="CompositeShape.cs" />
+    <Compile Include="ChartDataRowsModelDataCollector.cs" />
     <Compile Include="LegendShape.cs" />
     <Compile Include="DataRow.cs" />
Index: trunk/sources/HeuristicLab.Visualization/IChartDataRowsModel.cs
===================================================================
--- trunk/sources/HeuristicLab.Visualization/IChartDataRowsModel.cs	(revision 873)
+++ trunk/sources/HeuristicLab.Visualization/IChartDataRowsModel.cs	(revision 874)
@@ -1,6 +1,7 @@
 ﻿using System.Collections.Generic;
+using HeuristicLab.Core;
 
 namespace HeuristicLab.Visualization {
-  public interface IChartDataRowsModel {
+  public interface IChartDataRowsModel : IItem {
     string Title { get; set; }
     string XAxisLabel { get; set; }
