VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

How to plot multiple X-Y scatter graphs, also known as 2D XY, on an unbound MS Chart control.

W. Baldwin  (4 Submissions)   Custom Controls/Forms/Menus   VB 6.0   Unknown Difficulty   Tue 18th September 2001   Mon 8th February 2021

How to plot multiple X-Y scatter graphs, also known as 2D XY, on an unbound MS Chart control.

API Declarations



'This example shows how to plot multiple X-Y scatter graphs, also
'known as 2D XY, on an unbound MS Chart control. X-Y scatter graphs
'differ from other types because the associated DataGrid object needs
'2 columns per series, rather than just one. The first column for
'each series stores the X values, and the second one stores the Y
'values.

'Instructions: Add the MSChart control to your toolbox, then add
'it to a form. For clarity, try to make it at least 8 inches
'wide, by 5 inches tall, on the form. then, paste this code into
'the code window, and run.

'written by W. Baldwin, 8/2001

'OldRowCount keeps track of how many points have been plotted for
'the previous series, so we can remove null points from all the
'series that are shorter:
Dim OldRowCount As Long
'PenColor determines whether we are drawing in color or Black & White
'Black & White is for black and white printers, and uses different
'line patterns to distinguish series.
'ShowMarker is a flag that determines whether each plot point
'has a marker or not.
Dim PenColor As Boolean, ShowMarker As Boolean
'ChartPoints is the array that will hold the plot data
Dim ChartPoints() As Double
Dim lRow As Long, lRow2 As Long
Dim XValue As Single, YValue As Single

Rate How to plot multiple X-Y scatter graphs, also known as 2D XY, on an unbound MS Chart control. (1(1 Vote))
How to plot multiple X-Y scatter graphs, also known as 2D XY, on an unbound MS Chart control..bas

How to plot multiple X-Y scatter graphs, also known as 2D XY, on an unbound MS Chart control. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters