home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{008BBE7B-C096-11D0-B4E3-00A0C901D681}#1.0#0"; "TEECHART.OCX"
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 6930
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 5445
- LinkTopic = "Form1"
- ScaleHeight = 6930
- ScaleWidth = 5445
- StartUpPosition = 3 'Windows Default
- Begin TeeChart.TChart TChart1
- Height = 5655
- Left = 0
- OleObjectBlob = "Form1.frx":0000
- TabIndex = 0
- Top = 120
- Width = 5415
- End
- Begin VB.CommandButton Command2
- Caption = "Editor"
- Height = 495
- Left = 1920
- TabIndex = 2
- Top = 6000
- Width = 1095
- End
- Begin VB.CommandButton Command1
- Caption = "Make Graph"
- Height = 495
- Left = 360
- TabIndex = 1
- Top = 6000
- Width = 1215
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- Dim x As Long, y As Long
- With TChart1
- .RemoveAllSeries
- .AddSeries scLine
- .Aspect.View3D = False
- With .Series(0)
- For x = 1 To 15
- y = x * x * x - 10 * x * x + 5 * x - 6
- .AddXY x, y, "", vbRed
- Next
- End With
- End With
- TChart1.Axis.Left.Title.Caption = "y value"
- TChart1.Axis.Left.Title.Font.Size = 12
- TChart1.Axis.Bottom.Title.Caption = "x value"
- TChart1.Axis.Bottom.Title.Font.Size = 12
- TChart1.Legend.Visible = False
- TChart1.Header.Text.Add "Graph of y against x"
- TChart1.Series(0).asLine.LinePen.Width = 2
- End Sub
- Private Sub Command2_Click()
- TChart1.ShowEditor
- End Sub
-