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.
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 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.