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

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

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
  • 693 views
  • 2 likes
  • 2 in conversation