VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Generating Charts using Microsoft Chart Control

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

Rate 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.



Download this snippet    Add to My Saved Code

Generating Charts using Microsoft Chart Control Comments

No comments have been posted about Generating Charts using Microsoft Chart Control. Why not be the first to post a comment about Generating Charts using Microsoft Chart Control.

Post your comment

Subject:
Message:
0/1000 characters