How to display a Stacked grouping in a VBARPARM chart for SAS 9.3? There is a syntax error when I add the groupdisplay option with VBARPARM. The default option for Group is Cluster, not Stacked.
I have to use a combination of VBARPARM and SERIES charts to control the grouping of the LPARNAME variable,
Errror:
58 /group=LPARNAME groupdisplay=stack
____________
22
76
ERROR 22-322: Syntax error, expecting one of the following: ;, ATTRID, BARWIDTH, CLUSTERWIDTH, DATALABEL, DATALABELATTRS, DATALABELPOS, DATASKIN, DISCRETEOFFSET, FILL, FILLATTRS, GROUP, GROUPORDER, LEGENDLABEL, LIMITATTRS, LEGENDLABEL, LIMITATTRS, LIMITLOWER, LIMITUPPER,
MISSING, NAME, NOFILL, NOOUTLINE, OUTLINE, TRANSPARENCY, URL.
My code is:
PROC SGPLOT DATA=file1
description = ' ';
BY Complex;
vbarparm category=TIME response=SMF70LAC/group=LPARNAME groupdisplay=stack
name='a';
SERIES X=TIME
Y=SMF70MCR /
LEGENDLABEL='CAPACITY RATING'
lineattrs=(color=gold thickness=3) name='b'
curvelabelloc=outside
CURVELABELPOS= Max
curvelabelattrs=(size=8pt)
CURVELABEL="COMPLEX CAPACITY";
SERIES X=TIME
Y=LPAR_MSU /
LEGENDLABEL='LPAR MSU'
lineattrs=(color=green thickness=3) name='C'
curvelabelloc=outside
CURVELABELPOS= Max
curvelabelattrs=(size=8pt)
CURVELABEL="LPAR MSU";
xaxis display=(nolabel);
KEYLEGEND 'A' / TITLE=' '
valueattrs=(Family=Arial Size=8);
run;
Thanks, it worked.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.