
The following examples show the stock trend during a particular year. Examples are
provided for the SGPLOT and the SGPANEL procedures. Each example specifies an
optional baseline value on the Y axis.
title "Stock Trend for IBM";
proc sgplot data=sashelp.stocks
(where=(date >= "01jan2005"d and stock = "IBM"));
needle x=date y=close / baseline=80;
run;
title;
title "Stock Trend for Intel and Microsoft";
proc sgpanel data=sashelp.stocks
(where=(date >= "01jan2005"d and
(stock = "Intel" or stock = "Microsoft")));
panelby stock;
needle x=date y=close / baseline=24;
run;
title;
Options are available that enable you to customize the needle plot and enhance ...