Link to home
Start Free TrialLog in
Avatar of mishbal
mishbal

asked on

Simple graph structure

I would be gratefull for help in plotting a simple graph
I have a stream of data going into a listbox and i need to chart it continuously similar to the view you get on a cardiograph
Avatar of Maxim10553
Maxim10553
Flag of United States of America image

the best way to do this would be to create the basic graph in Excel, use Excel'S COM to update the graph dynamically according to your input, and view the updated graph in an OLE container on your VB app.
Do you know the range of data you will get before hand, or will we have to figure mins and maxs as we go?
Avatar of leachim
leachim

PaulHews
The range of data will have to be figured out
thanks
Test
I thought I might have some code on tap, but it looks too complicated with extraneous computations to post here.  Basically, what I do is calculate a max X and Y value from my data set, then scale it into a picture box.  Clear the picture box on each pass and use picture.line to draw the line from data point to data point.

I answered a question like this last year, but I can't find it now.  Probably a question with a silly name, :( ("Calling all Experts" or something.)
Avatar of mishbal

ASKER

PaulHews
Thanks for those pointers
i will keep the question open as i dont feel fluent enough with vb to develop on the information you have given me I will search experts exchange for your previously answered question
Thanks
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial