Quote:
Originally Posted by sanderson
I have two one dimentional arrays I want to plot versus each other. Its just a basic x versus y plot. I have been trying to use mschart in vb 2008 but I have been unsuccessful. Can someone tell me how to create a simple x y plot on a form using the date stored in two arrays?
|
Your request doesn't give much useful information.
Two arrays of what? You meantioned "date stored" but I think that was a typo for "data stored".
Then you meantion plotting x,y which is a single point so I assume that one array holds many x vaules and the other holds many y values. If this is try why dont you use a Point Structure and store the full x,y points in one array?
Are you asking for help looping through an array? Or are you asking for help with the MSChart control or are you asking for help useing the & operator to join multi values such as a value from each array?
You need to clearly specify what you want to accomplish, what you already know, and where your stuck before anyone can actually help you.
I assume this will help somewhat.
Code:
Public Structure POINT
Public X As Integer
Public Y As Integer
Public Sub New(ByVal X As Integer, ByVal Y As Integer)
Me.X = X
Me.Y = Y
End Sub
End Structure