Hi Sir,
i have file consist
km tower no
117 0
450 1
432 2
350 3
250 4
...
this the span of kilometer between each tower.
means
towerno km
0 117
1 562
2 994
3 1042
4 1292
....
no i have problem i plotted the graph i want to add this series to existing chart which is plotted against kilometer.
the existing chart file is
km fault
0 8
1 2
3 5
4 6
5 5
6 1
......
Please help me i was able to plot the chart but i am not able to plot tower no not even in tooltip.
1.how do i plot in same graph.
2.Or can i super impose 2 chart areas by making transperent.
What I have tried:
Public Function ChartOpen(ByVal path As String, ByVal A As System.Windows.Forms.DataVisualization.Charting.Chart) As String
For Each line As String In IO.File.ReadAllLines(path)
A.Series(0).ToolTip = "Open"
Dim points() As Double = Array.ConvertAll(line.Split(" "c), Function(s) CDbl(s))
A.Series(0).Points.AddXY(points(0), points(1))
A.Series(0).ToolTip = "kM = #VALX" & vbCrLf & "Fault = #VALY"
Next
End Function
Public Function ChartTower(ByVal path As String, ByVal A As System.Windows.Forms.DataVisualization.Charting.Chart) As String
For Each line As String In IO.File.ReadAllLines(path)
line = line & " 2"
A.Series(2).ToolTip = "Tower"
Dim points() As Double = Array.ConvertAll(line.Split(" "c), Function(s) CDbl(s))
A.Series(2).Points.AddXY(points(0), points(1))
A.Series(2).ToolTip = "kM = #VALX"
Next
End Function