I know this question has been sitting around a while - better late than never! 🙂
I've run into the same limitation - currently, I do not think there is a way to do this with gbarline.
There is a request (S0175859) to have gbarline support the 'pointlabel' option on the symbol statement.
And also a request (S0293117) to have gbarline support 'annotate' on the plot line.
But neither of these are available as of the 9.3 release.
Perhaps somebody knows of a work-around with proc sgplot(?)
Or even without annotate ... but there are tradeoffs & limitations
axis3 value=(angle=90) minor=none;
symbol1 value=none interpol=needle width=7 color=blue
pointlabel=(color=blue position=top height=1.5pct);
symbol2 value=dot interpol=join color=red
proc gplot data=sashelp.tourism;
format vsp cpisp comma5.1;
plot vsp*year=1 / vaxis=axis1 haxis=axis3;
plot2 cpisp*year=2 / vaxis=axis2;
This SGPLOT code should give you the equivalent result of GBARLINE with data labels on both charts:
proc sgplot data=sashelp.class;
vbar age / response=height datalabel;
vline age / response=weight y2axis datalabel;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.