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 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1429 views
  • 1 like
  • 3 in conversation