Free cookie consent management tool by TermsFeed Policy Generator

source: branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/LineChartLogic.cs @ 10381

Last change on this file since 10381 was 10377, checked in by aesterer, 11 years ago

Added line chart and basic logic for line chart

File size: 805 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Analysis;
6
7namespace HeuristicLab.DataPreprocessing
8{
9  public class LineChartLogic:ILineChartLogic
10  {
11    private IPreprocessingData preprocessingData;
12
13    public LineChartLogic(IPreprocessingData preprocessingData) {
14      this.preprocessingData = preprocessingData;
15 
16    }
17
18    public void FillDataTable(DataTable dataTable) {
19      IEnumerable<string> variableNames = preprocessingData.VariableNames;
20
21      foreach(string variableName in variableNames)
22      {
23        IList<double> values = preprocessingData.GetValues<double>(variableName);
24        DataRow row = new DataRow(variableName, "", values);
25        dataTable.Rows.Add(row);
26      }
27 
28    }
29  }
30}
Note: See TracBrowser for help on using the repository browser.