by Bhuwan Chand Joshi (69 Submissions)
Category: Graphics
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 21st July 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Generating Charts using Microsoft Chart Control
'Generating Charts:
'Open a standard exe form
'Place a Microsoft Chart Control over the form by selecting from the Component option
'Type the code given below
Private sub Form_Load()
MSChart1.chartType = VtChChartType2dStep
Dim arrPlotData(1 To 10)
Dim j As Integer
For j = 1 To 10
arrPlotData(j) = j
Next j
MSChart1.ChartData = arrPlotData
MSChart1.EditCopy 'Copy the chart into the clipboard
End Sub
'Run the application and see the chart generated. Open a paint brush and Press Ctrl + V to paste the chart.