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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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