Hi I have a problem creating a graph in SAS. my data is as follow: Date, comp_1,comp_2, comp_3, total_value. My data is sorted by dates. the variable comp_ represent the value of the company at a specific data. This is my code at the moment:
proc gplot data=dev2.Actionfinal2;
plot (comp_1 comp_2 comp_3)*date
/ overlay areas=3 vaxis=0 to 100000 by 20000;
symbol1 i=join v= cv= ci=red;
symbol2 i=join v= cv= ci=blue;
symbol3 i=join v= cv= ci=green;
run;
quit;
This graph show me the 3 companies value overlayed, but I want them stacked so I can see the total value of the companies for each dates. Do I need to reformat my data, what option can I use ?