home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / apps / database / fastbase / graph.txt < prev    next >
Text File  |  1991-11-09  |  10KB  |  189 lines

  1.                         GRAPHS IN FASTBASE
  2.  
  3.      Fastbase  now incorporates a powerful,  multi-range  graphing 
  4. function.  To appreciate the graphs at their best you will require 
  5. GDOS,  or one of the equivalents such as G+Plus or  NVDI.  Indeed, 
  6. GDOS is required to get any form of printed output.
  7.  
  8. THE GRAPH CONTROL PANEL
  9.      To  draw a new graph,  or amend an existing one,  select  the 
  10. "Graph" option from the "Process" menu,  or press  Alternate-G.  A 
  11. panel will appear at the bottom of the screen.
  12.  
  13. The "NAME:" FIELD
  14.      Every  graph must have a unique name,  which may be up to  20 
  15. characters long. The name is for your reference only, and is of no 
  16. significance to the computer.
  17.  
  18. The "FILTER:" FIELD
  19.      The  filter is a formula that is applied to every  record  in 
  20. the database, in the same way as the query function. If the result 
  21. of  the  filter  is  not  zero,  that  record  passes  the  "entry 
  22. requirement" for graphing,  and the "operation:" is applied to it. 
  23. As  you  will see,  each of the six available ranges has  its  own 
  24. unique "filter" and "operations".
  25.  
  26. THE "OPERATION:" FIELD
  27.      The "operation:" is a formula that is applied to each  record 
  28. that  passes the "filter:" test.  The result of this operation  is 
  29. what is actually plotted on the graph.  For example, just entering 
  30. a  single  field  name will plot the value of that  field  on  the 
  31. graph.  Complex  formulae  referring to  many  fields,  from  many 
  32. databases are perfectly possible.
  33.  
  34. SELECTING ANOTHER RANGE
  35.      You may have up to six ranges plotted on a single graph. Each 
  36. range has its own filter and operations,  and its own  styles.  By 
  37. default,  you  start entering information for range "A".  To  edit 
  38. another  range click on the "Range" button and select a new  range 
  39. from the popup menu.  A common error is to forget which range  you 
  40. are editing,  and thus enter the wrong data.  Try not to fall into 
  41. this trap.
  42.  
  43. CHOOSING A DATABASE TO GRAPH
  44.      Even  though your filter and operations may contain  explicit 
  45. references  to database names using the "."  character,  you  must 
  46. still  tell FastBase which database you are graphing from.  To  do 
  47. this,  click  on  the  "Misc." button and  select  the  "Database" 
  48. option.  Remember  that each range (A..F) has its own  filter  and 
  49. operations,  so  don't forget to set a database for each one  that 
  50. you are using.  You will probably find that the default offered by 
  51. FastBase is correct for your needs.
  52.      The  database  that you enter here is the one  that  FastBase 
  53. applies the filter to.
  54.  
  55. SCALING
  56.      To  select the way that your graph is scaled,  click  on  the 
  57. "Misc" button and choose either "Range",  "From zero" or "Manual". 
  58. These options control the way that the Y-axis is  scaled.  "Range" 
  59. means  that  the  lowest and highest values on the  axis  are  the 
  60. lowest  and highest values to be plotted.  "From zero" means  that 
  61. the lowest value is always zero.  The highest value is the highest 
  62. value to be plotted.  To enter your own high and low  values,  use 
  63. the  "Manual"  option.  You should then select  the  "Set  manual" 
  64. option to enter your values.
  65.  
  66. CHOOSING A GRAPH TYPE
  67.      To  select  the type of graph to draw,  click on  the  "Type" 
  68. button  and select the required type.  The most appropriate  graph 
  69. for your data will be found by experimentation with the  available 
  70. types. All ranges (A..F) will be graphed using the same type.
  71.      If  you select a 3D graph type,  then you should be aware  of 
  72. the  "3d ratio" option under the "Misc" popup  menu.  This  option 
  73. allows you to set the relative depth of the 3D bars. Experiment to 
  74. find the best option for you.
  75.  
  76. STYLES
  77.      Each range (A..F) has its own fill and line styles. Naturally 
  78. the line style is only relevant to line graphs.  To edit a  style, 
  79. click  on  the  "Styles" button and select the  either  "fill"  or 
  80. "line"  from  the popup menu.  An appropriate  dialogue  box  will 
  81. appear  from which you may edit a new style.  The Atari  operating 
  82. system  is  at present incapable of printing thick  lines  in  any 
  83. style apart from solid.  FastBase is ready for the day that  Atari 
  84. fix this problem, and will work correctly when they do.
  85.  
  86. TEXT COMMENTS
  87.      You may have up to ten text strings on each graph.  These are 
  88. commonly  used  for titles,  comments and anything else  that  you 
  89. want.  Click  on the "Text" button to add a text comment.  If  you 
  90. have already defined some text,  then select the one to edit  from 
  91. the popup menu.  The dialogue box allows you to set the text font, 
  92. colour, styles and rotation angle.
  93.      The "Add" button adds your text to the graph,  in addition to 
  94. those  already  there.  The "Amend" button amends the  text  being 
  95. edited  with the new settings.  "Delete" removes the  text  string 
  96. from the graph.
  97.  
  98. THE Y-SCALE
  99.      To change the attributes of the numbers on the Y-axis,  click 
  100. on  the  "Y" button.  A popup menu will  appear.  All  the  normal 
  101. options  relevant  to number formatting appear within  this  menu, 
  102. together with some extras.
  103.      The "Y-scale" option determines whether a Y-scale is actually 
  104. printed.
  105.      The  "With lines" option determines whether a line  is  drawn 
  106. across the graph from each number on the axis.  This can help  you 
  107. identify  the value of the points in the graph.  The "Line  style" 
  108. option  in the "Set..." sub-menu allows you to set the  style  and 
  109. colour of these lines.
  110.      The  "Points" option in the "Set..." sub-menu allows  you  to 
  111. set the number of values actually printed on the Y-axis,  and  the 
  112. "Font" option sets the GDOS font used on the Y-axis.
  113. THE X-SCALE
  114.      To  change the way text labels are printed along the  X-axis, 
  115. click on the "X" button. A popup menu will appear.
  116.      The   "X-scale"  option  determines  whether  anything   will 
  117. actually be printed along the X-axis.
  118.      "This range" will be ticked if the labels for the axis are to 
  119. come from the database specified in the current range.
  120.      Select  the "Field" option to change the field that is to  be 
  121. used  as  labels  on the X-axis.  This field will  come  from  the 
  122. database specified using the "The range" option, above.
  123.      The  "skipping"  option is used to set the number  of  points 
  124. that are skipped over in between each label.  The more points that 
  125. you  have  on  your graph,  the more you are  likely  to  set  the 
  126. "skipping" value to.
  127.      The "Font" option sets the GDOS font and size that is used on 
  128. the X-axis.
  129.  
  130. GRAPH MANAGEMENT
  131.      To add your newly defined graph to memory, click on the "Add" 
  132. button.  You  may have up to 5 graphs in memory at  once.  If  the 
  133. named graph already exists,  you are given the chance to overwrite 
  134. the one already in memory.
  135.      To  choose  a  graph definition from  memory,  click  on  the 
  136. "Select"  button.  A  popup menu will appear from  which  you  may 
  137. choose a graph name.  All the settings will be set to those of the 
  138. graph that you choose.
  139.      To  delete  a  graph definition from  memory,  click  on  the 
  140. "Delete"  button.  A  popup menu will appear from  which  you  may 
  141. choose a graph name.  The graph will be irretrievably removed from 
  142. memory.
  143.      To save a graph definition to disk, select the "Save" button. 
  144. You  will  have to pick a graph name to save,  then use  the  file 
  145. selector  to choose a file name.  All graphs should be saved  with 
  146. the extension ".GRF".
  147.      To  load a graph from disk,  select the  "Load"  button.  You 
  148. should  use  the file selector to pick the name of  the  graph  to 
  149. load. Any graphs saved in the same directory as the "FASTBASE.PRG" 
  150. file will be auto-loaded when you run FastBase.  This auto-loading 
  151. may  be  overridden  by  holding down the  left  Shift  key  while 
  152. FastBase is loading.
  153.  
  154. DISPLAYING YOUR GRAPH
  155.      To show your graph in a window,  click on the "Okay"  button. 
  156. If the named graph already exists in a window,  you will be  given 
  157. the option to open a new window.  For much the same reason as  DTP 
  158. programs are slow, so is the redrawing of graph windows. With this 
  159. in mind,  it can be unwise to have more than one graph window open 
  160. at  any one time.  Of course,  if you own a TT or a souped-up  ST, 
  161. then speed probably is not a problem to you.
  162.      If  you  have any text comments on your graph,  they  may  be 
  163. dragged to the correct position with the mouse.  To amend the text 
  164. in any way,  double click on it.  The text amendment dialogue  box 
  165. will appear from which you may make the necessary changes.
  166.  
  167. ADDING A BACKDROP IMAGE
  168.      You  can add a backdrop image to your graph by selecting  the 
  169. "Add image" option from the "Process" menu, "Graphs" sub-menu. Use 
  170. the file selector to select the image file; the usual file formats 
  171. are supported.  When the image appears in the background,  you may 
  172. use your mouse to drag it to the correct position.
  173.      The  "Remove image" option allows you to remove the  backdrop 
  174. image.
  175. PRINTING YOUR GRAPH
  176.      You  can print your graph out by selecting the "Print  graph" 
  177. option from the "Process" menu,  "Graphs" sub-menu. Note that GDOS 
  178. is required to use this option. After the printer driver and fonts 
  179. have been loaded,  you will be presented with a dialogue box  from 
  180. which  you may set the size and position of the printed  image  on 
  181. the  page.  Use  the mouse to drag and resize the shaded  area  to 
  182. where you want it.
  183.      To  obtain the best results,  set the width to  whatever  you 
  184. desire,  then select the "Square" height button.  This results  in 
  185. your graph appearing square on the page.
  186.      Due to GDOS not being able to print bitimages correctly,  any 
  187. backdrop  image  that  you  may have to your  graph  will  not  be 
  188. printed.
  189.