BookmarkSubscribeRSS Feed
Jagadishkatam
Amethyst | Level 16

Hi Experts, 

 

Here I have a question on how to use the annotation dataset with function='SYMBOL' to display triangle with black color filled. I want to use this annotated dataset in proc SGRENDER with proc template. But I cannot see the symbol plotted in the graph at all. Your inputs are highly appreciated on where I am going wrong. 

 

 DATA anno;
ATTRIB FUNCTION LENGTH = $20;
FUNCTION = "SYMBOL";
text='TRIANGLE';
style='marker';
X1 = 6;
Y1 = 187;
position='3';
anchor='';
size=3;
color='black';
OUTPUT;
RUN;

in the proc template after the overlay i used the annotate statement as well

proc sgrender data=want template=plot sganno=anno;
run;
Thanks,
Jag
3 REPLIES 3
ballardw
Super User

Did the log show anything odd?

 

You may have to share 1) the SGrender code, 2) the template definition and 3) some example data to plot.

himself
Pyrite | Level 9
Good question last time I checked on this, SAS provides only provides Arrow, image, line ,oval, polycont,ploygon,rectangle, text and textcont function, SAS did not have Symbol function. Would suggest yusing symbolchar statement, combined with attrmap
ballardw
Super User

@himself wrote:
Good question last time I checked on this, SAS provides only provides Arrow, image, line ,oval, polycont,ploygon,rectangle, text and textcont function, SAS did not have Symbol function. Would suggest yusing symbolchar statement, combined with attrmap

Hasn't changed from the documentation at https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/grstatgraph/n08al3evnkckrjn1hi3p8cw3vfw5.htm

 

What I suspect has happened is that @Jagadishkatam has found the documentation for SAS/Graph, the device based graphics system annotation, which does have a Symbol function, and is attempting to use the incompatible instructions with the SGanno annotate facility.

 

Text with the correct font/character set may work

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 3 replies
  • 1798 views
  • 0 likes
  • 3 in conversation