BookmarkSubscribeRSS Feed
Junyong
Pyrite | Level 9

In the following sgplot, can I just italicize Yahoo Finance in footnote so that it can be Source: Yahoo Finance for example?

SNP500.png

Here is the working snippet.

filename SNP500 url 'https://query1.finance.yahoo.com/v7/finance/download/%5EGSPC?period1=-1388534400&period2=1767225599';

proc import file=SNP500 dbms=csv replace out=SNP500;
run;

ods results=off;
ods listing gpath='!USERPROFILE\Desktop\';
ods graphics/reset imagename='SNP500';
title 'S&P 500 Index';
footnote 'Source: Yahoo Finance';

proc sgplot;
	series x=date y=close;
	yaxis type=log;
run;

Thanks for your help!

3 REPLIES 3
Ksharp
Super User
title 'S&P 500 Index';
footnote"Source: "  font="Albany AMT/italic" "  Yahoo Finance";

proc sgplot data=sashelp.class;
	scatter x=weight y=height;
run;

Ksharp_0-1668229140503.png

 

Ksharp
Super User

Or try "ITALIC" option in TITLE.

 

footnote"Source: "  ITALIC "  Yahoo Finance";
Patrick
Opal | Level 21

Besides of what @Ksharp already shared you might also consider to also use ODS for the title. 

Here the docu link as your starting point. https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsproc/n0b6rprbxhai4dn0z9gqwr5jfzhl.htm 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 3 replies
  • 541 views
  • 1 like
  • 3 in conversation