martin2k

Google
 
Web www.martin2k.co.uk

How do I use charts in Visual Basic?

Question


Home Read and add posts to the Visual Basic 6.0 Forums Download some of my programs and OCXs Read the Tips here The old style forum is still available here Contact


From: Tham Yieng
Date: Saturday 20 June 2001 11:53 PM
Subject: need help
Question: dear sir,

i'm a new user of VB programing.
i am trying to do a project on Statistical Process Control (spc) project.

This project required to draw out graph/chart according to data input. The graph such as histrogram, control chart and others.

i would like to ask if VB can do all these or not and how to do it??

pls give ur precious advice.

ur kind attention is very much appriciated.

thank you

tham.

Visual Basic 6.0 can do all of this. The easiest way of doing it is to load the Microsoft Chart Control 6.0 (OLEDB) - MSCHRT20.OCX. You can find this on the components list. The control itself is quite easy to use. If you have any more problems, contact me or post a message at the Forum.


Comments

From: Lovely Angel
Date: Tuesday, May 8, 2007 at 20:17:59
Comments: A fantastic example...kept trying in getting charts to work...and this works...great..got my project running...now i am working on more complex graphs/charts....thanks indeed....
 
From: prakash
Date: Tuesday, March 8, 2005 at 11:06:16
Comments: This is  a good article thx a lot for ur help.this one helps me to solve my problem
 
From: hello
Date: Monday, May 31, 2004 at 09:42:10
Comments: Demo code has been a great help. Thanx
 
From: manisha saini
Date: Monday, March 1, 2004 at 11:44:02
Comments: hi, iam trying to export the vb graph in any data base in which we can editing & manipulating can u give me ur precious idea
 
From: kumud
Date: Saturday, February 28, 2004 at 06:11:30
Comments: i am new at vb 6 and i have data saved in an excel file.I would ask you how do i use this data to make a  histogram of the data in the excel file.. an example would be greatly appreciated.the data is as follows
age height
16    6.2"
17     5.9"
18     6.0"
14     5.7"
18     6.0"
 
From: Sami Zighan
Date: Saturday, February 21, 2004 at 09:15:09
Comments: I am using MS Chart in VB6 (2DPie ), my question : who can I show the values of the data in the chart , currently it gives me a colored sector only , how van I make the values available on the chart

Thanks very much in advance

 
From: Biren Brahmbhatt
Date: Thursday, February 19, 2004 at 14:05:25
Comments: Hello Sir,
          I am a trainee, and doin' a project of Automation Software. I am required to plot charts using real-time data. I have successfully done the plotting. But now i need to show more than one chart in a single screen. Can you help me, in doing that?
 
Reply: It is possible to use more than one Microsoft Chart Control on the Form.
 
From: talat radaideh
Date: Thursday, February 5, 2004 at 13:45:53
Comments: i want to aske if there is a command in VB that let me draw a directed edge between two nodes as follows
--------->  , i need it for my project that let the user enter a graph of edges and nodes and apply a search algorithm such that DFS
 
From: karol
Date: Saturday, January 31, 2004 at 15:27:50
Comments: i am new at vb 6 and i have data saved in an excel file.the file is called c:\book1.csv.I was wondering how do i use this data to make a pie chart  or histogram of the data in the excel file.. an example would be greatly appreciated.the data is as follows
age height
16    6.2"
17     5.9"
18     6.0"
14     5.7"
18     6.0"
 
From: prashant Rana
Date: Wednesday, January 28, 2004 at 12:09:05
Comments: sir i want a chart to be drawn in ms chart in vb
in xy scatter y-axis is in -200 to 200 and x axis is 0 to 10 such that ur  origin starts frm say point p then
p(0,-200) x- axis has 10 div frm 0 to 1 and so on and 
in y axis inc and dec of 40 and frm -200 to -160
u have 5div and so on so plz help me iam a new user of vb
 
From: mohan
Date: Tuesday, January 13, 2004 at 12:01:13
Comments: I want to plot semilog graph in visual basi can u send me the code plz
 
From: Jonno
Date: Monday, January 12, 2004 at 13:58:41
Comments: Thanks for the help - greatly appreciated.
 
From: pg
Date: Sunday, January 11, 2004 at 19:35:16
Comments: I want to connect excel data to MSchart.
But range is not fixed.It varies according to requiremet.
 
From: suresh
Date: Monday, January 5, 2004 at 13:57:33
Comments: your program is very nice and useful
 
From: kreshen
Date: Thursday, December 18, 2003 at 07:10:09
Comments: how to plot points around an image
 
From: emma lwanga
Date: Tuesday, December 16, 2003 at 17:32:16
Comments: am to design a program to analyse income n expenditure patterns .could u guide me on how best to go over the problem.mainly i want to create charrts,database and graphics.
 
From: Vaishali
Date: Friday, November 28, 2003 at 15:41:05
Comments: I want to create a graphical representation using VB6 representing real time data which will be taken from the net. the data can be stock excahnge values/currency rates etc which will  be received at the rate of 2 min. I am planning to use access as the database system.

Pls let me know in how do I do this using VB. How do I use chart control for dynamic kind of a chart which can have a vertical line as a cursor which scans the graph horizontally. The corresponging can be displayed in a separate txt box. The problem is having a cursor  on the graph, which makes it read the values at real time???

Also which database do you suggest I use.

Hope to get a reply from you.

 
From: Rajesh
Date: Saturday, October 25, 2003 at 23:32:45
Comments: I have 1000 x and y coordinates to draw a graph. I have those in Ms excel. I want to plot a in Visual Basic 6.0 Using those points, how to do that? And Also how to write the code if we want the graph for only certain range of X.

Rajesh

 
From: YOUSUF ALI
Date: Saturday, October 11, 2003 at 21:15:30
Comments: how do we maintain data in the form of graphs using VB by maintaining database in MS access
 
From: surya
Date: Thursday, October 9, 2003 at 15:00:38
Comments: How to draw a rectangle in the graph. In visual Basic 6.0.

with there values as inputs

 
Reply: What kind of graph are you talking about?  What values are inputted?
 
From: hemant khandagale <free2rhymehhk@yahoo>
Date: Friday, September 5, 2003 at 11:07:11
Comments: sir,
How i should  use vb6.0 to draw charts and value's of that charts are accessed from oracal database.
please reply me soon.
                 thank you.
 
From: Sulfiquer
Date: Saturday, August 16, 2003 at 06:42:00
Comments: Sir ,

i want two different charts to be merged in to a single chart. 

Can i do this with mearging the two charts into bmp file, or is there any other way of mearging both the figures of chart in to one figure.

Also How to export the chart into Bmp file in the run time.

expecting to reply .

thank you 
Sulfi

 
From: francis dela cruz
Date: Sunday, February 23, 2003 at 09:57:13
Comments: dude can you help me how to create a graph on visual basic please. if you do can you tell me how to do it. sned me email if you know ho to do it k. asap....
 
Reply: Here is a simple project that demonstrates how to use the Chart Control:

mschart.zip (3.56 KB)

 
From: faisal
Date: Saturday, January 18, 2003 at 18:07:09
Comments: think you very much forward
 
From: BHAVESH TRIVEDI
Date: Sunday, November 24, 2002 at 09:51:18
Comments: hi, I am trying to interface my portable instrument with pc i am successfull in establishing this using the mscomm control of vb.the data is coming to the pc nicely but i want to plot this data as a graph which is online graphical representation of the data collected from my instrument which is sending temperature of the room . i am facing trouble in plotting this online graph with vb. can u give me your precious advice about how i should go.

Please fill in the below form if you have any comments or additional information you want to add about the above information.  If you have any Visual Basic 6.0 questions, please visit the ForumAny questions sent using this form will be ignored.

* - Mandatory

*Name: E-mail:

*Comments:

*Please type the following code (your comment will not be accepted without it):


Martin Allen 1999 - 2007.  Last updated Wednesday 11 July 2007 06:24:15 PM +0100.