Hallo,
Also ich habe ein problem ( ) :
Ich habe eine textdatei in der pro zeile daten die ausgelesen werden geteilt werden in:
[datum]
[ Zeit ]
[Antwort]
Wie kann ich den neuen punkt angeben? (jahr, datum , Uhrzeit)
-list.Add("22.11.2010 18:41:44", "52") Funktioniert nicht!
Hier den aktuellen code:
Ich habe noch keine erfahrung mit zedgraph.
Ich freue mich auf Antworten
Mfg manu
Also ich habe ein problem ( ) :
Ich habe eine textdatei in der pro zeile daten die ausgelesen werden geteilt werden in:
[datum]
[ Zeit ]
[Antwort]
Wie kann ich den neuen punkt angeben? (jahr, datum , Uhrzeit)
-list.Add("22.11.2010 18:41:44", "52") Funktioniert nicht!
Hier den aktuellen code:
VB.NET-Quellcode
- Public Sub CreateChart(ByVal zgc As ZedGraphControl)
- Dim myPane As GraphPane = zgc.GraphPane
- ' Set the titles and axis labels
- myPane.Title.Text = "Anser Time of pings"
- myPane.XAxis.Title.Text = "Date"
- myPane.YAxis.Title.Text = "Ms"
- ' Make up some data points from the Sine function
- Dim list As New PointPairList()
- Dim list2 As New PointPairList()
- For i As Integer = 0 To 35
- Dim x As Double = New XDate(2010, i + 1, 1)
- Dim y As Double = Math.Sin(CDbl(i) * Math.PI / 15.0)
- Dim y2 As Double = 2 * y
- list.Add("22.11.2010 18:41:44", "52")
- 'list.Add(x, y)
- Next
- ' Generate a green curve , and "My Curve 2" in the legend
- Dim myCurve2 As LineItem = myPane.AddCurve("Usage", list, Color.Green, SymbolType.None)
- ' Fill the area under the curve with a white-red gradient at 45 degrees
- myCurve2.Line.Fill = New Fill(Color.White, Color.Red, 45.0F)
- ' Make the symbols opaque by filling them with white
- myCurve2.Symbol.Fill = New Fill(Color.White)
- ' Set the XAxis to date type
- myPane.XAxis.Type = AxisType.[Date]
- ' Fill the axis background with a color gradient
- myPane.Chart.Fill = New Fill(Color.White, Color.LightGoldenrodYellow, 45.0F)
- ' Calculate the Axis Scale Ranges
- zgc.AxisChange()
- End Sub
Ich habe noch keine erfahrung mit zedgraph.
Ich freue mich auf Antworten
Mfg manu
Dieser Beitrag wurde bereits 9 mal editiert, zuletzt von „Manu67100“ ()