%OP%TM1 %OP%FM2 %OP%BM1 %OP%LM5 %OP%HE/%H2%Z88 Users' Club Software Library%H2%/ %OP%FO/%H2%190%H2%/@P@/ %CO:A,12,70%%C%%H1%%H2%BAR CHARTS FOR THE Z88%H2%%H1% %C%By Niels Levi %C%May 1992 %H1%Introduction%H1% Some time ago, I had to present some results in bar chart form. Unfortunately, I was not able to do this on a Z88 and so had to humiliate myself and ask a friend, who was very proud of his IBM and Harvard Graphics software, to help me. As a result, I wrote a very simple BASIC program to produce bar charts. Using a CLI file, the chart can be transmitted to PipeDream so as to add text. This also means the printer driver can be used to alter the printing. I have not used much energy to make the program user friendly and I recommend you edit the program using PipeDream (see Users' Guide page 200) to alter the parameters of the bars. %H1%Method%H1% LOAD the program into BASIC Type RUN []+S Type []-S when the program finishes. A file (:ram.-/S.sgn) has been created which can be loaded into PipeDream for editing. {Remember to delete this file once you have loaded it into PipeDream!} %H1%Changing the Bar Chart Parameters%H1% The %H2%number%H2% of bars is set in line 20 (I). The %H2%height%H2% of the bars is set the DATA statement in line 180. The %H2%width%H2% of the bars is set in line 60 (A). %H1%Changing the overall size%H1% This depends upon your printer but, for example, on a Star LC10 the size can be reduced by either selecting %H4%Elite Condensed%H4% on the printer or changing the User Defined Printer Highlight (in PrinterEd) to select same (i.e. change it from 27,120,1 {= NLQ} to 27,65,4) and then highlight the bar chart in PipeDream with <>PE. %H1%"Colouring the Bars"%H1% Delete lines 60, 80 and 95. Insert line %H2%33 FOR A=1 TO 10%H2% Change line %H2%35 FOR N=0 TO Y:D(X,N)=3:NEXT N%H2% Select the PrinterEd and change character 45 (-) to character 219 or 223 in IBM Character Set #2 and then change the printer to IBM mode. %CO:B,12,60%%CO:C,12,48%%CO:D,12,36%%CO:E,12,24%%CO:F,12,12%