I am trying to add a simple line graph in excel automatically by using EPPlus. I have and know the range of cells that contain the data that I want to use. I want the graph to look like the following:

The Before and After columns go on for a lot more than what is shown.
I am using this code to create the graph and position it, but I am not sure how to set the data that the graph uses:
ExcelChart ec = ws.Drawings.AddChart("Line Time Graph", OfficeOpenXml.Drawing.Chart.eChartType.Line);
ec.Title.Text = "Benchmarks";
ec.SetPosition(_times.Count + 2, 0, 1, 0);
It might have something to do with ec.Series.Add but I am not sure how to properly use it. If you could point me in the right direction that would be great.
Hope this helps you:
Another full example I’ve just tested:
c:catis the category forserseries, let removec:cattags from charts xml, then your chart will use1,2,3,4,5,...as default for the category (x axis here).