BookmarkSubscribeRSS Feed
kds
Calcite | Level 5 kds
Calcite | Level 5

hi,

need some help with SGPLOT.!!
I need to highlight an area of a graph with some light color/slant or cross lines. 
For example, in below case /graph , is it possible to highlight the area starting from 01Aug00 till the end of the X-axis( with some shade/color/slanting lines/cross lines )

Annotate doesn't work with 9.2 sgplot..so I am unable to use annotate with sgplot.

Does SGPLOT has any feature by which this can be achiveved. I searched some of the SGPLOT documentations but unable to find a single feature which can achieve this.

Experts!! Please help me! :smileyplain:


sgplot.JPG

proc sgplot data=sashelp.stocks (where=(date >= "01jan2000"d

                                 and date <= "01jan2001"d

                                 and stock = "IBM"));

   title "Stock Volume vs. Close";

   vbar date / response=volume;

   vline date / response=close y2axis;

run;

2 REPLIES 2
art297
Opal | Level 21

Why can't you use annotate .. or was the feature only added in 9.3?  Take a look at: http://support.sas.com/kb/48/123.html

art297
Opal | Level 21

If that was indeed only introduced in 9.3, take a look at: http://support.sas.com/resources/papers/proceedings11/095-2011.pdf

sas-innovate-2024.png

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.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 714 views
  • 0 likes
  • 2 in conversation