<?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 Re: Cannot Create a Pie Chart in ODS EXCEL Using PROC GCHART? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Cannot-Create-a-Pie-Chart-in-ODS-EXCEL-Using-PROC-GCHART/m-p/384949#M13194</link>
    <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I have had the best results by explicitly specifying the PNG device when creating graphics for Excel. &amp;nbsp;You can use the ODS GRAPHICS statement to set the image format for SG* procedures.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2017 13:02:37 GMT</pubDate>
    <dc:creator>Vince_SAS</dc:creator>
    <dc:date>2017-08-02T13:02:37Z</dc:date>
    <item>
      <title>Cannot Create a Pie Chart in ODS EXCEL Using PROC GCHART?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Cannot-Create-a-Pie-Chart-in-ODS-EXCEL-Using-PROC-GCHART/m-p/384653#M13175</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;I can create&amp;nbsp;a vertical bar chart in ODS EXCEL (.xlsx)&amp;nbsp;using PROC SGPLOT but when I substitute that code&amp;nbsp;and replace it with&amp;nbsp;a PROC GCHART to create a pie chart, it doesn't create a chart and no error messages are created in the .xlsx&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Does creating a pie chart in PROC GCHART not work with ODS EXCEL?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;FONT size="3"&gt;Generates a bar chart in ODS EXCEL:&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;proc&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=work.data;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp; vbar&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; percentage / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=category;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Does not generate a pie chart in ODS EXCEL:&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;proc&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;gchart&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=work.data;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp; pie&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; category / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;sumvar&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=percentage;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Cannot-Create-a-Pie-Chart-in-ODS-EXCEL-Using-PROC-GCHART/m-p/384653#M13175</guid>
      <dc:creator>robby_beum</dc:creator>
      <dc:date>2017-08-01T15:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Create a Pie Chart in ODS EXCEL Using PROC GCHART?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Cannot-Create-a-Pie-Chart-in-ODS-EXCEL-Using-PROC-GCHART/m-p/384655#M13177</link>
      <description>&lt;P&gt;If you want an ODS graphics version of a pie chart, check out the %GTLPieChartMacro by Sanjay Matange&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/08/26/how-about-some-pie/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2012/08/26/how-about-some-pie/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Cannot-Create-a-Pie-Chart-in-ODS-EXCEL-Using-PROC-GCHART/m-p/384655#M13177</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-08-01T15:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Create a Pie Chart in ODS EXCEL Using PROC GCHART?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Cannot-Create-a-Pie-Chart-in-ODS-EXCEL-Using-PROC-GCHART/m-p/384908#M13192</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;This worked for me using SAS 9.4 M4 on Windows:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;

ods Excel file='C:\temp\temp.xlsx';

goptions device=png;

proc gchart data=sashelp.class;
   pie sex / sumvar=age;
run; quit;

ods Excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 11:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Cannot-Create-a-Pie-Chart-in-ODS-EXCEL-Using-PROC-GCHART/m-p/384908#M13192</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-08-02T11:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Create a Pie Chart in ODS EXCEL Using PROC GCHART?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Cannot-Create-a-Pie-Chart-in-ODS-EXCEL-Using-PROC-GCHART/m-p/384936#M13193</link>
      <description>&lt;P&gt;Thank You Vince,&lt;/P&gt;
&lt;P&gt;I did a little experiment. Your code worked for me as well and it appears that the "goptions device=png;" is what allowed the pie chart to render. I placed the following in my code and both graphs were created in the .xlsx. I then commented out the&amp;nbsp;&lt;SPAN&gt;"goptions device=png;" and reran and only the bar chart was created.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;goptions device=png;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gchart data=sashelp.class;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; pie sex / sumvar=age;&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=sashelp.class;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; vbar age / group=sex;&lt;BR /&gt; run;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 12:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Cannot-Create-a-Pie-Chart-in-ODS-EXCEL-Using-PROC-GCHART/m-p/384936#M13193</guid>
      <dc:creator>robby_beum</dc:creator>
      <dc:date>2017-08-02T12:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Create a Pie Chart in ODS EXCEL Using PROC GCHART?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Cannot-Create-a-Pie-Chart-in-ODS-EXCEL-Using-PROC-GCHART/m-p/384949#M13194</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;I have had the best results by explicitly specifying the PNG device when creating graphics for Excel. &amp;nbsp;You can use the ODS GRAPHICS statement to set the image format for SG* procedures.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 13:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Cannot-Create-a-Pie-Chart-in-ODS-EXCEL-Using-PROC-GCHART/m-p/384949#M13194</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-08-02T13:02:37Z</dc:date>
    </item>
  </channel>
</rss>

