Subject: I need help with making a graph.
Posted By: kanryue Post Date: 8/20/2006 12:50:43 PM
I just need to make a basic graph, and I know pretty much nothing on graphs. Can anyone tell me how to make one?

Reply By: BrianWren Reply Date: 8/21/2006 3:01:57 PM
Probably not if you are this unforthcoming.
What are you using?  (VBA? VB v6?  VB.NET?)
What are you trying to graph? (Equation? Database data? Spreadsheet data?)
What is the end use?  (Web page?  Printer?  MS Access report?  Form?)

No one knows what your task is, you need to fill us in.  Be forthcoming.  The more pertinent details, the better the chances you will get the advice you want.
Reply By: marcostraf Reply Date: 8/21/2006 4:10:58 PM
Hi Brian,
there is no need to be so hursh with a guy who states that he/she does not know anything about graphs...

anyhow, using VB (any flavors) there are few ways to draw simple (or complex) graphs. You can use the MSChart control, that is very "basic".
You pass the array of data, specify the "mode" of the graph, and that's it.

For very basic graphs you can use a PictureBox, using the methods Line and Print (to draw a line or print text), with the related methods like CurrentX, CurrentY and ScaleMode. Very basic, but also very flexible, and it allows to do stuff that even the MSChart can't do. Of course you have to do all the drawing by yourself.

As another alternative, you can insert a Excel spreadsheet in you app and use the the graphics of Excel.

If you need more info, please let us know.

Marco
Reply By: BrianWren Reply Date: 8/21/2006 4:51:12 PM
Didn't mean to be hursh, only to give samples of what types of information were absent in the label "unforthcoming."
Underlined "pertinent" because I could just imagine a flood of info on the perifery in an attempt to flesh things out while only cluttering.

I do admit though that it is exasperating that so many people (kanryue not included) open with a subject line like "I need help with VB."  (no duh!)
This is so often followed with just about no information:  "I'm thinking of maybe writing a program: can you help with the code?  What should I add . . . "
Again, this is not what kanryue did, though there was a dearth of context-setting info.

True, kanryue was up front about not knowing much about graphs.  Any shortness on my part was not due to that.  But surely kanryue has had individuals ask for help from time to time, and one would think all people would have learned pretty early on how much it helps to have a more complete picture.  (Or, maybe not, since so many give sketchy details... What do I know?)

Anyway, please don't think harshness was my intent, it wasn't.  I only strove for clarity.

Go to topic 40933

Return to index page 198
Return to index page 197
Return to index page 196
Return to index page 195
Return to index page 194
Return to index page 193
Return to index page 192
Return to index page 191
Return to index page 190
Return to index page 189