Hello everyone, I wanted to ask for some help with graphs. Specifically bar charts. I am trying to replicate a chart that is normally done in excel. I have made some efforts using PROC GCHART but I did not come close, only in shape of the bar chart and grouping. The image I am trying to replicate is attached and is called ORGINAL1.jpg Here is the table I am using data chartexample; input year $9. FCPIXG FMIXG FOIXG FOEXG; datalines; 1987-2015 16.5 6.9 2.7 2.3 1987-1990 18.7 5.7 2.6 1.3 1990-1995 15.8 5.2 3.7 2.1 1995-2000 40.7 10.9 3.4 4.5 2000-2007 13.7 8.5 2.6 2.7 2007-2015 5.4 4.6 1.6 1.2 ; run; This is the code I used to attempt the replication. proc sort data=chart4 out=yo; by year; run; proc transpose data=yo out=chrto; by year; var FCPIXG FMIXG FOIXG FOEXG; run; title 'Chart 4. Types of capital equipment in the private nonfarm business sector, 1987- 20XX '; proc gchart data=chrto; vbar _NAME_ / noframe sumvar=col1 group=year legend = legend1 coutline=same ; run ; quit ; The output graph is attached and is called IMAGE1.jpg Any assistance (links, websites) would be greatly appreciated. Best,
... View more