
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 its
appearance. For example, you can do the following:
• specify a baseline value, as shown in the example.
• add markers to the tips of the needles and specify marker attributes.
• add data labels and specify label attributes.
• control the display of grouped data. For example, you can specify whether the groups
are overlaid or clustered, the width of each ...