BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
imstrizn
Calcite | Level 5

hello guys, this is my first time writing a program and using SAS, so I need a help.

I will create GDP trends graph 2000-2022, but the Y-axis scale just follows the GDP point.
I wanna adjust Y-Axis (0-1400 interval 100) and the X-axis followed by every single year (not every 10 years). 

 

%%SASK
proc sgplot data=gdpIndonesia;
title "Indonesia Nominal GDP Trends 2000-2022";
series x=Year y=GDP_Nominal/markers curvelabel curvelabelattrs=(size=12pt)
curvelabelpos=max curvelabelloc=outside
lineattrs=(thickness=2pt) markers markerattrs=(size=6)
datalabel datalabelattrs=(size=10pt);

yaxis label='Nominal GDP (in billions USD)';

footnote j=L "GDP Deflator base 2015" ;
footnote2 j=L " " ;
run;

1 ACCEPTED SOLUTION
1 REPLY 1

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 408 views
  • 2 likes
  • 2 in conversation