As i mentioned in my comment to the question, there are 2 types of charts in Excel: embedded chart and a chart sheet. See:
Excel Dashboard Templates What is an Excel chart sheet vs. an embedded chart? - Excel Dashboard Templates[
^]
Depending on that, the method of adding source of chart lines/curves may differ.
See:
Creating Charts in Microsoft Office Excel 2003 Using Visual Basic for Applications Code[
^]
Good luck!
[EDIT]
Try this:
Dim xlApp As Excel.Application, xlWbk As Excel.Workbook, xlChart As Excel.Chart
Dim sFileName As String = "FullPathAndFileName.xlsx"
Try
xlApp = New Excel.Application
xlWbk = xlApp.Workbooks.Open(sFileName)
xlChart = xlWbk.Charts.Add()
With xlChart
.Name = "MyChart_" & xlWbk.Charts.Count
.ChartType = 4
.HasTitle = True
.ChartTitle.Text = "Time And Value"
.SeriesCollection(1).Name = "=Sheet1!$B$1"
.SeriesCollection(1).Values = "=Sheet1!$B$2:$B$12"
.SeriesCollection(2).Name = "=Sheet2!$B$1"
.SeriesCollection(2).Values = "=Sheet2!$B$2:$B$12"
.Axes(1, 1).HasTitle = True
.Axes(1, 1).AxisTitle.Characters.Text = "Time"
.Axes(2, 1).HasTitle = True
.Axes(2, 1).AxisTitle.Characters.Text = "Value"
End With
xlApp.Visible = True
Catch ex As Exception
Console.WriteLine("{0}", ex.Message)
Finally
xlChart = Nothing
xlWbk = Nothing
xlApp = Nothing
End Try
Above code draws a chart with 2 lines ;)