Reset Graph
Posted: Sat Jan 31, 2004 9:14 pm

How can I reset the graph to its initial state without clearing all of the data that has been added to it through my application?
Steema Software - Customer Support Forums
https://594668.gxwh.asia/support/
Code: Select all
Dim InitialChart
Private Sub Command1_Click()
TChart1.ClearChart
TChart1.Import.LoadFromStream InitialChart
End Sub
Private Sub Form_Load()
With TChart1
.Aspect.View3D = False
.AddSeries scBar
.Series(0).AddXY 0, 50, "", clTeeColor
.Series(0).AddXY 1, 80, "", clTeeColor
.Series(0).AddXY 2, 60, "", clTeeColor
End With
TeeCommander1.Chart = TChart1
InitialChart = TChart1.Export.asNative.SaveToStream(True)
End Sub