With BARLABEL option:
proc template;
387 define statgraph b_test;
388 begingraph / border=false ;
389 layout overlay / xaxisopts=(display=none) yaxisopts=(display=none) WALLDISPLAY=NONE ;
390 barchart x=value / name="legend" orient=vertical display=standard barlabel=true barwidth=1
--------
22
76
ERROR 22-322: Syntax error, expecting one of the following: ;, BARWIDTH, CONNECTATTRS,
DATASELECTABLE, DATATRANSPARENCY, DISPLAY, FILLATTRS, GROUP, GROUPORDER, INDEX,
LEGENDLABEL, NAME, ORIENT, OUTLINEATTRS, PRIMARY, STAT, TIP, TIPFORMAT, TIPLABEL,
URL, XAXIS, YAXIS.
ERROR 76-322: Syntax error, statement will be ignored.
391 fillattrs=(color=RED) OUTLINEATTRS=(color=black);
392 endlayout;
393 endgraph;
394 end;
WARNING: Object will not be saved.
395 run;
NOTE: PROCEDURE TEMPLATE used (Total process time):
real time 0.07 seconds
cpu time 0.03 seconds
Without BARLABEL option:
proc template;
397 define statgraph b_test;
398 begingraph / border=false ;
399 layout overlay / xaxisopts=(display=none) yaxisopts=(display=none) WALLDISPLAY=NONE ;
400 barchart x=value / name="legend" orient=vertical display=standard barwidth=1
401 fillattrs=(color=RED) OUTLINEATTRS=(color=black);
402 endlayout;
403 endgraph;
404 end;
NOTE: STATGRAPH 'B_test' has been saved to: SASUSER.TEMPLAT
405 run;
NOTE: PROCEDURE TEMPLATE used (Total process time):
real time 0.18 seconds
cpu time 0.00 seconds