What is your destination of interest?? For example, do you want a web page (ODS HTML)? Do you want a document that you can open in a word processor (ODS RTF)? Or, do you want a document that you can open with Adobe Acrobat Reader(ODS PDF)??? Or, do you want to create just an external image file???
The technique shown in the Tech Support note -- which uses PROC GREPLAY is just one way of producing 2 outputs side-by-side.
How you create your output depends on the ODS destination that you will use for the output. Also useful to know is your operating system, your version of SAS, and how you are creating the PIE charts (using SAS Enterprise Guide, using SAS Display Manager Windowing Environment, or via batch processing).
My destination of interest is a web page. I am using ODS HTML along with the code that I sent in the previous post.
The tech support note does it for a vertical bar chart using GREPLAY. I think I would want to use GREPLAY itself but would like a pie chart. From the tech support note I could understand that the use of axis options and statement helped in putting the charts one beside the other ( I might be wrong too, correct me if I am wrong). And I think we don't have the axis options with 'pie3d' statement in PROC GCHART. So, is it possible to do the same what is done in the tech support but for pie charts. I am asking this because my situation(data and requirement) in excatly similar to what is being talked in the TS note except that I need a pie chart.
I am creating PIE charts using a stored procedure (the user submits information through the web form and the stored procedure is run), I am using XP and SAS 9.2.
I am using the following code but I am not getting what I wanted. There is a note in the log which says that the foreground color is same as background color and that part of my graph may not be visible. How can I rectify that?
options dev = activex;
ods listing close;
ods html file = "C:\Inetpub\wwwroot\ASL.NET\AspSampleFiles\Repository\pie_new.html";
Also, when I see the html file, I see the individual pie charts (New York and Overall) one after the other and then another chart area but dont see the chart ( there is a red cross mark at the top left corner of the chart area with the text "Graphics Replay"). Now, I think it is because of that note in the log but what I actually want to see in the html file is just the output from the GREPLAY proc. I dont want to see the two individual charts one after the other, I just want to see the third chart ( the one which will show the two pie charts side by side). Hope I was able to explain my requirements.
I notice your code specifies device=activex.
You cannot use device=activex with "proc greplay".
I would suggest using the "ods htmlpanel" technique instead.
Also, I would suggest using device=png rather than device=activex (in general).
Activex does not support many of the SAS/Graph features (for example, greplay),
and there are also issues with respect to all users being able to view the output.
There is another way to use GREPLAY without explicitly using the axis-shifting technique shown in the Tech Support note. In this method, you use a SAS/GRAPH template that divides the graph area into sections and then you would replay each PIE into a section.
That is the technique illustrated at this link: http://www.robslink.com/SAS/democd11/multi_info.htm (explicitly shows how to put multiple graphs on a single image) using code this type of code:
proc greplay igout=gseg tc=sashelp.templt template=l2r2s nofs;
where the L2R2S template is dividing a graphic area into 4 rectangles (2 up, 2 down) with a space between each rectangle. This is in contrast to the Tech Support note technique, which uses a template that defines the whole graphic area as one area and then replays the shifted images into the whole template.