Data visualization with SAS programming

Add Plot to Legend

Accepted Solution Solved
Reply
Super Contributor
Posts: 326
Accepted Solution

Add Plot to Legend

Hi,

I have this vbar chart with a plot which is an annotation. I would like to add that plot into the items in the legend of the graph. Is this possible?

Btw, version of SAS is 913.

Thanks!


_graph.jpg

Accepted Solutions
Solution
‎09-30-2011 10:42 AM
SAS Employee
Posts: 977

Add Plot to Legend

I usually set xsys and ysys to '3' and just use trial-and-error to guess at the x and y coordinates, until my annotation is in the desired position.

View solution in original post


All Replies
SAS Employee
Posts: 977

Add Plot to Legend

If you had a more recent version of SAS (9.2 or 9.3) I would recommend using Gbarline (gbarline was pretty new in 9.1.3, and some of the features were still under development back then).  Here's an example of a combined legend in gbarline:

http://support.sas.com/kb/33/173.html

Things you do in annotate don't really have a legend, so you have to "fake" one (using more annotate, or a title/footnote statement, or a 'note', etc).

Super Contributor
Posts: 326

Add Plot to Legend

Hi,

How do I annotate along the legend area? I have only tried creating annotations which are inside the graph area.

Thanks!

Solution
‎09-30-2011 10:42 AM
SAS Employee
Posts: 977

Add Plot to Legend

I usually set xsys and ysys to '3' and just use trial-and-error to guess at the x and y coordinates, until my annotation is in the desired position.

Super Contributor
Posts: 326

Add Plot to Legend

Thanks you very much again!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 225 views
  • 0 likes
  • 2 in conversation