|★ APPLICATIONS ★ CREATION GRAPHIQUE ★ GRAPH-IT: GAME FOR A GRAPH ★|
|Graph-it: Game for a Graph||Applications Creation Graphique|
3-D graphs are within your grasp with this Amstrad utility by M Peachey
This program allows the user 10 quickly produce attractive three dimensional bar charts, or histograms as they are also called, simply by providing a label for each bar and an associated value.
Up to twelve bars can be produced and values between 1 and 9,900 can be drawn. Automatic. scaling adjusts the scale so that the full height of the screen is always used.
For a maximum value above 990 the scale value is multiplied by a factor of ten in order that the scale labels do not exceed three digits.
Values are rounded to the nearest 1 /20th of the scale maximum value and plotted accordingly.
Bar labels are similarly limited to three characters to ensure clarity of presentation.
The table of labels and values could usefully be printed to a line printer for permanent record, using the characters and values contained in the two arrays labels and valuecomp. With the addition of a screen dump routine, the bar chart itself could be printed.
Note: A REM should be temporarily inserted in line 50 before ON ERROR GOTO 1000 so that you can pin point any typographical errors.
Home Computing Weekly #132