Dear experts,
I am trying to display the sum of the variables on a chart (inside=sum) but I do not get what I expect, attached the output and here the code
proc gchart data=mydata_plot;
vbar3d month / width=60
WOUTLINE=1
type=sum
sumvar=var_tot
inside=sum
subgroup=&var1.
legend=legend1
maxis=axis1
raxis=axis2
space=.4
/*annotate=barlabel*/
frame;
title "my data by &var1.";
run;
quit;
I can plot the data but I get the following warning:
The VBAR/VBAR3D chart for month could not be labeled using INSIDE= because the labels are wider than the
bars.
Which is possible solution? Can I somehow display the value in the chart or could I at least print the table with the values under the table? In case yes... how? tahnks a lof in advance for your hints.
BRs, SH
Do you mean something like this:
http://blogs.sas.com/content/graphicallyspeaking/?s=datalabel+barchart
Get your total into a variable, then use datalabel options on one of the newer procedures to display it. However it sounds like the value your trying to display in each of the bars is too wide to fit (i.e. it would wrap over the other bars). Either size your bars up, or reduce font/size of text might help.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.