0

Hi there,
I want to picture a line graph based on my array. I can create a graph line with 3 different series, but I don't get my exact chart as in excel. As can be seen from graph in the attachment. It has additional lines. I want just the 3 curved lines, but i don't know why it create other lines. Here is the code I used:

ReDim dataGraph(2, UPPER + 1)
      Chart1.Series.Add("Series1")
      Chart1.Series.Add("Series2")
      Chart1.Series.Add("Series3")
      'eachpart is the result of multiple statistical calculation
      dataGraph(LL - 1, TT) = eachpart  'TT is the counter in a for loop
      Chart1.Series("Series1").Points.AddXY(TT, dataGraph(0, TT))
      Chart1.Series("Series2").Points.AddXY(TT, dataGraph(1, TT))
      Chart1.Series("Series3").Points.AddXY(TT, dataGraph(2, TT))
      'to picture all series
      Chart1.Series("Series1").ChartType = SeriesChartType.Line
      Chart1.Series("Series2").ChartType = SeriesChartType.Line
      Chart1.Series("Series3").ChartType = SeriesChartType.Line

What is wrong with this code?

Thanks for your help

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Afi83
0

I am really sorry for posting two same post. I don't have any idea what happened.
I forget to post the attachment. here is it.

Thanks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.