<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to create a layout while hiding previous charts? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-layout-while-hiding-previous-charts/m-p/55502#M1897</link>
    <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I'm working on a stored process that need to display several charts on one page. I'm using the greplay statement to design the layout. But I couldn't find a way to hide the previous charts that I generated. I could either get all the charts shown at the same time or none of them.&lt;BR /&gt;
&lt;BR /&gt;
My code is as follows:&lt;BR /&gt;
&lt;BR /&gt;
goptions device=gif goutmode= replace;&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods graphics on;&lt;BR /&gt;
Title;&lt;BR /&gt;
Title1 'XXX';&lt;BR /&gt;
&lt;BR /&gt;
PROC GCHART DATA =a.dataset gout=b;&lt;BR /&gt;
    PIE  seg /&lt;BR /&gt;
    SUMVAR=segcount&lt;BR /&gt;
    TYPE=SUM&lt;BR /&gt;
    NOLEGEND&lt;BR /&gt;
    SLICE=INSIDE&lt;BR /&gt;
    PERCENT=INSIDE&lt;BR /&gt;
    VALUE=NONE&lt;BR /&gt;
    OTHER=4&lt;BR /&gt;
    OTHERLABEL="Other"&lt;BR /&gt;
    COUTLINE=BLACK&lt;BR /&gt;
    DISCRETE&lt;BR /&gt;
    explode=&amp;amp;selseg;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
    PIE  seg /&lt;BR /&gt;
    SUMVAR=tbrseg&lt;BR /&gt;
    TYPE=SUM&lt;BR /&gt;
    NOLEGEND&lt;BR /&gt;
    SLICE=INSIDE&lt;BR /&gt;
    PERCENT=INSIDE&lt;BR /&gt;
    VALUE=NONE&lt;BR /&gt;
    OTHER=4&lt;BR /&gt;
    OTHERLABEL="Other"&lt;BR /&gt;
    COUTLINE=BLACK&lt;BR /&gt;
    DISCRETE&lt;BR /&gt;
    explode=&amp;amp;selseg;&lt;BR /&gt;
run;quit;&lt;BR /&gt;
&lt;BR /&gt;
goption goutmode = append;&lt;BR /&gt;
&lt;BR /&gt;
ods listing;&lt;BR /&gt;
&lt;BR /&gt;
proc greplay igout=b gout=c&lt;BR /&gt;
             tc=tempcat nofs;&lt;BR /&gt;
             template=grftmplt;&lt;BR /&gt;
 tdef grftmplt&lt;BR /&gt;
&lt;BR /&gt;
 1/llx=20   lly=50&lt;BR /&gt;
   ulx=20   uly=90&lt;BR /&gt;
   urx=60  ury=90&lt;BR /&gt;
   lrx=60  lry=50&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
2/llx=40  lly=50&lt;BR /&gt;
   ulx=40  uly=90&lt;BR /&gt;
   urx=80 ury=90&lt;BR /&gt;
   lrx=80 lry=50&lt;BR /&gt;
    ;&lt;BR /&gt;
&lt;BR /&gt;
template grftmplt;&lt;BR /&gt;
&lt;BR /&gt;
  list template;&lt;BR /&gt;
&lt;BR /&gt;
treplay 1:gchart&lt;BR /&gt;
           2:gchart1&lt;BR /&gt;
           ;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
I'm using the ods listing to hide the charts, but by doing that I couldn't get the charts in gout as well. Anyone knows how to hide the previous graph and only display the page after layout design?</description>
    <pubDate>Tue, 28 Dec 2010 05:41:13 GMT</pubDate>
    <dc:creator>Andyshen</dc:creator>
    <dc:date>2010-12-28T05:41:13Z</dc:date>
    <item>
      <title>How to create a layout while hiding previous charts?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-layout-while-hiding-previous-charts/m-p/55502#M1897</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I'm working on a stored process that need to display several charts on one page. I'm using the greplay statement to design the layout. But I couldn't find a way to hide the previous charts that I generated. I could either get all the charts shown at the same time or none of them.&lt;BR /&gt;
&lt;BR /&gt;
My code is as follows:&lt;BR /&gt;
&lt;BR /&gt;
goptions device=gif goutmode= replace;&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods graphics on;&lt;BR /&gt;
Title;&lt;BR /&gt;
Title1 'XXX';&lt;BR /&gt;
&lt;BR /&gt;
PROC GCHART DATA =a.dataset gout=b;&lt;BR /&gt;
    PIE  seg /&lt;BR /&gt;
    SUMVAR=segcount&lt;BR /&gt;
    TYPE=SUM&lt;BR /&gt;
    NOLEGEND&lt;BR /&gt;
    SLICE=INSIDE&lt;BR /&gt;
    PERCENT=INSIDE&lt;BR /&gt;
    VALUE=NONE&lt;BR /&gt;
    OTHER=4&lt;BR /&gt;
    OTHERLABEL="Other"&lt;BR /&gt;
    COUTLINE=BLACK&lt;BR /&gt;
    DISCRETE&lt;BR /&gt;
    explode=&amp;amp;selseg;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
    PIE  seg /&lt;BR /&gt;
    SUMVAR=tbrseg&lt;BR /&gt;
    TYPE=SUM&lt;BR /&gt;
    NOLEGEND&lt;BR /&gt;
    SLICE=INSIDE&lt;BR /&gt;
    PERCENT=INSIDE&lt;BR /&gt;
    VALUE=NONE&lt;BR /&gt;
    OTHER=4&lt;BR /&gt;
    OTHERLABEL="Other"&lt;BR /&gt;
    COUTLINE=BLACK&lt;BR /&gt;
    DISCRETE&lt;BR /&gt;
    explode=&amp;amp;selseg;&lt;BR /&gt;
run;quit;&lt;BR /&gt;
&lt;BR /&gt;
goption goutmode = append;&lt;BR /&gt;
&lt;BR /&gt;
ods listing;&lt;BR /&gt;
&lt;BR /&gt;
proc greplay igout=b gout=c&lt;BR /&gt;
             tc=tempcat nofs;&lt;BR /&gt;
             template=grftmplt;&lt;BR /&gt;
 tdef grftmplt&lt;BR /&gt;
&lt;BR /&gt;
 1/llx=20   lly=50&lt;BR /&gt;
   ulx=20   uly=90&lt;BR /&gt;
   urx=60  ury=90&lt;BR /&gt;
   lrx=60  lry=50&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
2/llx=40  lly=50&lt;BR /&gt;
   ulx=40  uly=90&lt;BR /&gt;
   urx=80 ury=90&lt;BR /&gt;
   lrx=80 lry=50&lt;BR /&gt;
    ;&lt;BR /&gt;
&lt;BR /&gt;
template grftmplt;&lt;BR /&gt;
&lt;BR /&gt;
  list template;&lt;BR /&gt;
&lt;BR /&gt;
treplay 1:gchart&lt;BR /&gt;
           2:gchart1&lt;BR /&gt;
           ;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
I'm using the ods listing to hide the charts, but by doing that I couldn't get the charts in gout as well. Anyone knows how to hide the previous graph and only display the page after layout design?</description>
      <pubDate>Tue, 28 Dec 2010 05:41:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-layout-while-hiding-previous-charts/m-p/55502#M1897</guid>
      <dc:creator>Andyshen</dc:creator>
      <dc:date>2010-12-28T05:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a layout while hiding previous charts?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-layout-while-hiding-previous-charts/m-p/55503#M1898</link>
      <description>Alternate&lt;BR /&gt;
goptions   nodisplay ; ..... &lt;BR /&gt;
goptions display;&lt;BR /&gt;
proc greplay...&lt;BR /&gt;
&lt;BR /&gt;
but i have no experience of stored process&lt;BR /&gt;
&lt;BR /&gt;
Andre

Message was edited by: Andre</description>
      <pubDate>Tue, 28 Dec 2010 08:14:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-layout-while-hiding-previous-charts/m-p/55503#M1898</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2010-12-28T08:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a layout while hiding previous charts?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-layout-while-hiding-previous-charts/m-p/55504#M1899</link>
      <description>It works, thank you so much!</description>
      <pubDate>Tue, 28 Dec 2010 09:07:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-create-a-layout-while-hiding-previous-charts/m-p/55504#M1899</guid>
      <dc:creator>Andyshen</dc:creator>
      <dc:date>2010-12-28T09:07:07Z</dc:date>
    </item>
  </channel>
</rss>

