BookmarkSubscribeRSS Feed
Nicoleta
Calcite | Level 5
Hi
I’m trying to annotate a block chart as below but it doesn’t work. I don’t know where the mistake is, please help.

Thank you,
Nicoleta

data work.label(keep=function color text position y when group) ;
retain when 'A' function 'label' color 'black';
length function color $8 text $7 position $1;
set work.for_the_qtr_table(rename=(count=y group_cat=group));
position='2';
text=left(put(y,7.));
run;

proc gchart data=for_the_qtr_table;
block quarter/sumvar=count group=group_cat type=sum shape=cylinder
annotate=work.label;
run;
quit;
1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
Have you checked your SAS log for notes/errors? This documentation on ANNOTATE notes and error messages may help you.
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/a002246700.htm

Your best bet for help may be to open a track with Tech Support, as they can look at your data (which is being used to create the ANNOTATE data set) and help you find a resolution. To open a track with Tech Support, go to:
http://support.sas.com/ctx/supportform/createForm

cynthia

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1316 views
  • 0 likes
  • 2 in conversation