How to draw a graph
-
Hi (i've been askin my questions in a backwards manner) anyways I have 2 arrays of data, One array for x-axis and one for y-axis. How can I make a 2D Bar graph ? Ehsan Behboudi
If you want it for the web, see your repeat post below and Chris's suggestion. If it's for a Win32 client, consider using GDI+ and painting onto the form directly. Cheers, Simon "From now on, if rogue states want to buy weapons of mass destruction, they're going to have to go on eBay," Mr. Bezos said.
-
If you want it for the web, see your repeat post below and Chris's suggestion. If it's for a Win32 client, consider using GDI+ and painting onto the form directly. Cheers, Simon "From now on, if rogue states want to buy weapons of mass destruction, they're going to have to go on eBay," Mr. Bezos said.
-
Hi (i've been askin my questions in a backwards manner) anyways I have 2 arrays of data, One array for x-axis and one for y-axis. How can I make a 2D Bar graph ? Ehsan Behboudi
2D bar graphs on an HTML page are easy... 1 - Create a table that has as columns rows as you need data columns. 2 - Create a gfew gif images that are 1 pixel high and as wide as you need the data column to be. 3 - Figure the biggest size you need to hold all your data and create your table to hold that size. 4 - Figure each of the other data points as a percentage of the highest value. 5 - Place each of the images into the table column, and set it's height equal to the percentage of that data point to the largest number.
-
2D bar graphs on an HTML page are easy... 1 - Create a table that has as columns rows as you need data columns. 2 - Create a gfew gif images that are 1 pixel high and as wide as you need the data column to be. 3 - Figure the biggest size you need to hold all your data and create your table to hold that size. 4 - Figure each of the other data points as a percentage of the highest value. 5 - Place each of the images into the table column, and set it's height equal to the percentage of that data point to the largest number.
-
I would like to clear few things for myself: by table,, you mean an array? gif image is an object that i can choose,, is that correst? Ehsan Behboudi
Let's back up a bit here... What type of application are you writing? Web app or Forms based app? VB6 or VB.NET?
-
Let's back up a bit here... What type of application are you writing? Web app or Forms based app? VB6 or VB.NET?
-
The application is VB it is a forms based. and its VB6 I basically have two arrays , one for X-axis and one for y-axis. and all I would like to make a bar graph. :) Ehsan Behboudi
Here is a great link to a sample that shows you ho to use the MSChart control that comes with VB. Sample Clickety[^] Paul Watson wrote: At the end of the day it is what you produce that counts, not how many doctorates you have on the wall.