<?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: Pie Chart: gchart in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Pie-Chart-gchart/m-p/644733#M19829</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313878"&gt;@Golf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would this code meet your needs?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data softdrink_new;
	input X @@;
	datalines;
1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5
1 1 1 1 1 1 1 1 4 2 2 2 3 4 5 1 2 3 4 5 1 2 3 4 5
;
run;

proc format;
	value X_value_label 1="label1" 2="label2" 3="label3" 4="label4" 5="label5";
run;


/*Only frequencies*/
proc gchart data=softdrink_new;
	format X  X_value_label.;
	pie X / type=freq discrete; 
run;

/*Only percents*/
proc gchart data=softdrink_new;
	format X  X_value_label.;
	pie X / type=percent discrete; 
run;

/*Frequencies + percent*/
proc gchart data=softdrink_new;
	format X  X_value_label.;
	pie X / percent=outside discrete; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
    <pubDate>Sat, 02 May 2020 15:49:28 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-05-02T15:49:28Z</dc:date>
    <item>
      <title>Pie Chart: gchart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Pie-Chart-gchart/m-p/644728#M19828</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have one categorical with 5 values: 1, 2, 3, 4, 5.&amp;nbsp; &amp;nbsp;The data is 50 observations.&lt;/P&gt;&lt;P&gt;I'd like to create pie chart showing in frequency by using proc schart as follow:&lt;/P&gt;&lt;PRE&gt;proc gchart data=softdrink_new;&lt;BR /&gt;format X  X_value_label.;&lt;BR /&gt;pie X / sumvar=X ;&lt;BR /&gt;run;				&lt;/PRE&gt;&lt;P&gt;But the result of pie chart show the number which are not frequency of each category and label only on piece of the pie chart.&lt;/P&gt;&lt;P&gt;How can I correct this problem?&amp;nbsp; &amp;nbsp;Moreover, how to show the number in percentage in separate and the same pie chart?&lt;/P&gt;&lt;P&gt;Thank You&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 15:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Pie-Chart-gchart/m-p/644728#M19828</guid>
      <dc:creator>Golf</dc:creator>
      <dc:date>2020-05-02T15:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pie Chart: gchart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Pie-Chart-gchart/m-p/644733#M19829</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313878"&gt;@Golf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would this code meet your needs?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data softdrink_new;
	input X @@;
	datalines;
1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5
1 1 1 1 1 1 1 1 4 2 2 2 3 4 5 1 2 3 4 5 1 2 3 4 5
;
run;

proc format;
	value X_value_label 1="label1" 2="label2" 3="label3" 4="label4" 5="label5";
run;


/*Only frequencies*/
proc gchart data=softdrink_new;
	format X  X_value_label.;
	pie X / type=freq discrete; 
run;

/*Only percents*/
proc gchart data=softdrink_new;
	format X  X_value_label.;
	pie X / type=percent discrete; 
run;

/*Frequencies + percent*/
proc gchart data=softdrink_new;
	format X  X_value_label.;
	pie X / percent=outside discrete; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 15:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Pie-Chart-gchart/m-p/644733#M19829</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-02T15:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pie Chart: gchart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Pie-Chart-gchart/m-p/644743#M19830</link>
      <description>Thank you so much.</description>
      <pubDate>Sat, 02 May 2020 16:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Pie-Chart-gchart/m-p/644743#M19830</guid>
      <dc:creator>Golf</dc:creator>
      <dc:date>2020-05-02T16:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pie Chart: gchart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Pie-Chart-gchart/m-p/644744#M19831</link>
      <description>You're welcome &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313878"&gt;@Golf&lt;/a&gt; !</description>
      <pubDate>Sat, 02 May 2020 16:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Pie-Chart-gchart/m-p/644744#M19831</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-02T16:56:02Z</dc:date>
    </item>
  </channel>
</rss>

