martin2k

ForumsVB6GamesSoftwareDirectoryHTMLArticlesBlogContact

How do I use charts in Visual Basic?


 

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


 

Question

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.


blog comments powered by Disqus

Archived Comments

From: ankur bhutani
Date: Tuesday, November 17, 2009 at 11:51:21
Comments: this site hepls me a lot in making ma application
thanx to this site and users
 
From: Rahul/Sandeep
Date: Saturday, January 24, 2009 at 10:02:33
Comments: Hi,

You should try FusionCharts For VB once, you can impress your boss with it :D, this is a flash based charting component for VB 6.0. It has lots of features such as, it can fetch data from array, database (ADO), XML file, XML string, etc. All charts are animated and interactive, and also, they support Drill-Down, so that you can invoke/call any function by clicking on the chart's column or bar or bring a message box in front of user and amaze them, etc... You must have a look: http://www.fusioncharts.com/VB

Date: Friday, January 30, 2009 at 07:58:41
Comments: Hi All,

you can also try using another component i.e. FusionCharts For VB, It is a flash based charting component for VB 6.0. It has lots of features such as, it can fetch data from array, database (ADO), XML file, XML string, etc. All charts are animated and interactive, and also, they support Drill-Down, so that you can invoke/call any function by clicking on the chart's column or bar or bring a message box in front of user and amaze them, etc... You must have a look: www.fusioncharts.com/VB

 
From: kamarge priyankara
Date: Tuesday, October 7, 2008 at 11:21:54
Comments: You can draw whatever type of chart using vb 6.0
You can draw a chart by inputting directly to a text box or from database. Anyone need sample code pls contact me.
 
From: Michael
Date: Thursday, March 13, 2008 at 14:51:51
Comments: Visit www.oscilloscope-lib.com !

http://www.oscilloscope-lib.com/Osc_DLL_VB.zip

Speedy performance.
The library makes it possible to show on the beams of the oscilloscope over a million quantization steps of signal per second (on the Pentium III machine) – less than one micro-second is sufficient for one signal sample. This software can be used for linking to real-time controlling programs as longer delays in relay of data to the oscilloscope don’t occur. The relayed data is instantly displayed in beams, the process of their relay and display is deterministic (may be infinite). The relayed data is stored in the oscilloscope memory and can be displayed graphically as beams at any time – without any “solution” such as decimation or excerption, strobe effect and the like. It works regardless of the relay speed.

 
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.

Martin Allen 1999 - 2011.  Last updated Monday 08 August 2011 07:59:01 PM +0100.