<?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: Is there any way other than using PROC GCHART or PROC SGPLOT to create a pie chart in SAS? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947314#M47363</link>
    <description>&lt;P&gt;It could be your some settings with your editor.&amp;nbsp; I see everything normal in SAS studio. Below is the screen shot for the same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bala_Saladi_0-1728876606710.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101177iFA229C5FED60E7A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bala_Saladi_0-1728876606710.png" alt="Bala_Saladi_0-1728876606710.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2024 03:31:00 GMT</pubDate>
    <dc:creator>Bala_Saladi</dc:creator>
    <dc:date>2024-10-14T03:31:00Z</dc:date>
    <item>
      <title>Is there any way other than using PROC GCHART or PROC SGPLOT to create a pie chart in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947265#M47355</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;Is there any way other than using PROC GCHART or PROC SGPLOT to create a pie chart in SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe I don’t have a license for Gchart as mentioned in the log.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gchart data=tmp;
    pie antibiotic;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For the second way below the pie statement is highlighted in red that I think it doesn’t support pie statement&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=tmp;
  pie slice=antibiotic;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 13:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947265#M47355</guid>
      <dc:creator>bhr-q</dc:creator>
      <dc:date>2024-10-13T13:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way other than using PROC GCHART or PROC SGPLOT to create a pie chart in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947272#M47356</link>
      <description>&lt;P&gt;When you get an error in your code and it is highlighted in red, CHECK THE LOG. (&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068" target="_self"&gt;Maxim 2&lt;/A&gt;) If your reading of the log doesn't help, SHOW US the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, when you get an error in your code, check the documentation! (Maxim 1) Here is the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/grstatproc/p02p7mhmfpwsixn16th3fjtr35uw.htm" target="_self"&gt;documentation for the PIE statement&lt;/A&gt; in PROC SGPIE, does it show the syntax that you typed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 15:45:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947272#M47356</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-10-13T15:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way other than using PROC GCHART or PROC SGPLOT to create a pie chart in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947288#M47359</link>
      <description>&lt;P&gt;Here is the way to pie chart using proc template and ODS. you can try below code:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;BR /&gt;create table input_for_graph as&lt;BR /&gt;select model, make, type&lt;BR /&gt;from&lt;BR /&gt;sashelp.cars&lt;BR /&gt;WHERE make in ('Chevrolet','Audi')&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Template;&lt;BR /&gt;define Statgraph my_pie;&lt;BR /&gt;Begingraph;&lt;BR /&gt;Layout Region;&lt;BR /&gt;Piechart Category= type/&lt;BR /&gt;datalabellocation = outside&lt;BR /&gt;CATEGORYDIRECTION= clockwise&lt;BR /&gt;start= 180 Name= 'pie';&lt;BR /&gt;discretelegend 'pie'/&lt;BR /&gt;title= 'Cars Pie_Chart';&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;proc sgrender data= input_for_graph&lt;BR /&gt;template= my_pie;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bala_Saladi_0-1728845695554.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101176iEF4D266233483E4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bala_Saladi_0-1728845695554.png" alt="Bala_Saladi_0-1728845695554.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bala Saladi&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 18:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947288#M47359</guid>
      <dc:creator>Bala_Saladi</dc:creator>
      <dc:date>2024-10-13T18:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way other than using PROC GCHART or PROC SGPLOT to create a pie chart in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947299#M47360</link>
      <description>Thanks so much for your help, I did this way and noticed Piechart under proc template (Piechart Category= type/.....)&lt;BR /&gt;is highlighted in red.</description>
      <pubDate>Mon, 14 Oct 2024 01:26:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947299#M47360</guid>
      <dc:creator>bhr-q</dc:creator>
      <dc:date>2024-10-14T01:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way other than using PROC GCHART or PROC SGPLOT to create a pie chart in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947300#M47361</link>
      <description>I didn't get any error, I meant piechart in my coding is in red not the error</description>
      <pubDate>Mon, 14 Oct 2024 01:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947300#M47361</guid>
      <dc:creator>bhr-q</dc:creator>
      <dc:date>2024-10-14T01:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way other than using PROC GCHART or PROC SGPLOT to create a pie chart in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947302#M47362</link>
      <description>Code in red doesn't always means error code, it could be wrongly colored by editor.</description>
      <pubDate>Mon, 14 Oct 2024 01:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947302#M47362</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2024-10-14T01:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way other than using PROC GCHART or PROC SGPLOT to create a pie chart in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947314#M47363</link>
      <description>&lt;P&gt;It could be your some settings with your editor.&amp;nbsp; I see everything normal in SAS studio. Below is the screen shot for the same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bala_Saladi_0-1728876606710.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101177iFA229C5FED60E7A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bala_Saladi_0-1728876606710.png" alt="Bala_Saladi_0-1728876606710.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 03:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947314#M47363</guid>
      <dc:creator>Bala_Saladi</dc:creator>
      <dc:date>2024-10-14T03:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way other than using PROC GCHART or PROC SGPLOT to create a pie chart in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947364#M47364</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/465427"&gt;@bhr-q&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I didn't get any error, I meant piechart in my coding is in red not the error&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Great, but you have typed something that PROC SGPIE does not expect. You have the wrong syntax. Do yourself a favor and look at the documentation (I gave you the link)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 10:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947364#M47364</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-10-14T10:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way other than using PROC GCHART or PROC SGPLOT to create a pie chart in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947367#M47365</link>
      <description>&lt;P&gt;Assuming you're on 9.4M6 or later, there is PROC SGPIE:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n11xqf2g2rxnmbn1pgk4rbl5vz80.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n11xqf2g2rxnmbn1pgk4rbl5vz80.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure whey they made it a PROC, rather than a pie statement in SGPLOT.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 11:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947367#M47365</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-10-14T11:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way other than using PROC GCHART or PROC SGPLOT to create a pie chart in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947392#M47370</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2012/03/26/let-them-eat-pie/" target="_blank" rel="noopener"&gt;Let them eat pie - Graphically Speaking (sas.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Extended-Pie-Chart-Donut-of-Pie/td-p/693993" target="_blank" rel="noopener"&gt;Extended Pie Chart: Donut of Pie - SAS Support Communities&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If needed I can make you a pie chart with DSGI (data step graphics interface). But DSGI is not working on Viya and also in SAS 9.4 DSGI is no longer supported as from M6 or so (M6 = Maintenance level 6).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I invite you to do this Google search:&lt;BR /&gt;&lt;STRONG&gt;pie chart site:support.sas.com&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 09:56:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-there-any-way-other-than-using-PROC-GCHART-or-PROC-SGPLOT-to/m-p/947392#M47370</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-10-16T09:56:36Z</dc:date>
    </item>
  </channel>
</rss>

