Produce the bar-line chart. The SUMVAR= option in the BAR statement specifies the variable that determines the height of the bars. The SUMVAR= option in the PLOT statement specifies the plot variable. GBARLINE multiplies the value of the FREQ= variable by the value of the COUNT variable, and uses the result to determine the plot points.


proc gbarline data=failure;
   bar Defect/ sumvar=Count axis=axis1;
   plot / sumvar=Count freq=cost axis=axis2;
   run;
quit;