/// <summary> /// Helper function for plotting. /// </summary> private void Plot(string yAxisColumnName, string xAxisColumnName, IDataFrame dataFrame) { var subset = dataFrame.GetColumnsSubset(new string[] { yAxisColumnName, xAxisColumnName }); var series = new Series(xAxisColumnName); foreach (var entry in subset.GetValues<DateTime, float>()) { series.Points.AddXY(entry.Item1, entry.Item2); } this.chart1.Series.Add(series); }