%let name=sas_revenue; filename odsout '.'; /* Using data from here: http://www.sas.com/company/about/statistics.html And trying to make a better/more-technical graph than these: http://www.sas.com/company/about/statistics.html http://www.sas.com/news/preleases/2011financials.html http://www.sas.com/content/dam/SAS/images/charts-graphics-and-info-graphics/graphics/2016-annual-report-revenue-line-graph-breakout-part3.jpg */ data sas_data; input year revenue; revenue_billions=revenue/1000000000; length my_html $100; if revenue >= 1000000000 then my_html= 'title='||quote( trim(left(year))||': '||'0d'x|| trim(left(put(revenue/1000000000,dollar20.2)))||' billion '||'0d'x|| 'U.S. dollars')|| ' href="sas_revenue_info.htm"'; else if revenue >= 1000000 then my_html= 'title='||quote( trim(left(year))||': '||'0d'x|| trim(left(put(revenue/1000000,dollar20.1)))||' million '||'0d'x|| 'U.S. dollars')|| ' href="sas_revenue_info.htm"'; else my_html= 'title='||quote( trim(left(year))||': '||'0d'x|| trim(left(put(revenue,dollar20.0)))||' '||'0d'x|| 'U.S. dollars')|| ' href="sas_revenue_info.htm"'; datalines; 2017 3240000000 2016 3200000000 2015 3160000000 2014 3090000000 2013 3020000000 2012 2870000000 2011 2725000000 2010 2430000000 2009 2310000000 2008 2260000000 2007 2150000000 2006 1900000000 2005 1680000000 2004 1530000000 2003 1340000000 2002 1180000000 2001 1130000000 2000 1120000000 1999 1020000000 1998 871400000 1997 750000000 1996 652800000 1995 562400000 1994 481900000 1993 420200000 1992 365500000 1991 295400000 1990 240200000 1989 205600000 1988 170400000 1987 135300000 1986 102400000 1985 70900000 1984 52600000 1983 32300000 1982 19600000 1981 11200000 1980 5050000 1979 2300000 1978 1200000 1977 506000 1976 138000 ; run; proc sql noprint; select max(year) into :maxyear separated by ' ' from sas_data; quit; run; data anno_year_axis; xsys='2'; ysys='1'; hsys='3'; when='a'; do year=1975 to 2015 by 5; x=year; y=0; function='label'; style='albany amt/bold'; color='gray33'; position='8'; size=.; text=trim(left(year)); output; function='move'; x=year; y=0; output; function='draw'; size=.3; y=-1.5; color='gray77'; output; end; run; goptions device=png xpixels=600 ypixels=500; goptions noborder; ODS LISTING CLOSE; ODS HTML path=odsout body="&name..htm" (title="SAS Revenue (1976 - &maxyear)") style=sasweb; goptions htitle=16pt htext=12pt ftitle="albany amt/bold" ftext="albany amt/bold"; goptions ctext=gray33; axis1 label=none order=(0 to 3.5 by .5) major=none minor=none offset=(0,0) value=(t=1 ' ' t=8 '$ 3.5') style=0; axis2 label=none order=(1975 to 2017 by 1) major=none minor=none c=gray77 value=none offset=(0,1); title1 link="http://www.sas.com/company/about/statistics.html" ls=1.5 "SAS Annual Revenue 1976 - &maxyear"; title2 ls=1.0 height=14pt "(In Billion U.S. Dollars)"; footnote h=3 ' '; symbol1 value=circle height=1.5 color=cx0276FD ci=cx55a3fb interpol=needle line=1; proc gplot data=sas_data anno=anno_year_axis; plot revenue_billions*year=1 / vaxis=axis1 haxis=axis2 autovref cvref=gray55 lvref=33 noframe html=my_html des='' name="&name"; run; quit; ODS HTML CLOSE; ODS LISTING;