I have a large app written in VB3 which I am improving, and moving into VB5. One place in the app draws a line graph in a Picture Box. The old app did this (tediously) by using .line, and such. In my new VB5 version, I thought I would try MSChart, because it is prettier (and not so tedious). Pages 79 and 80 of the Microsoft VB Component Tools Guide show how to do this, but the description is murky and poorly described.
I have a one-dimensioned integer array of data to be plotted
Dim Gdata(1000) as Integer
It is only partly filled, up to index Gmax (an integer), which I know. How do I import that into MSChart? I would appreciate someone showing me how.
My best efforts get the graph axis, with the vertical scale auto-scaled ok (so MSChart is "seeing" the data properly), but the horizontal scale has no numbers, just "R1". -- And no curve is drawn.
Please help -- Norm Pos