<?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: Possible bug in proc sgpie in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Possible-bug-in-proc-sgpie/m-p/989187#M25931</link>
    <description>&lt;P&gt;No, what I'm trying to get is a slice for every value of v...so it should be count 1000 for 5, and count 1 for 10, 15, and 20. Instead, I'm only getting a count of 1 for 20.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2026 00:07:29 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2026-06-04T00:07:29Z</dc:date>
    <item>
      <title>Possible bug in proc sgpie</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Possible-bug-in-proc-sgpie/m-p/989174#M25929</link>
      <description>&lt;P&gt;Hi. When I run the following code...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data pie1;
	do i=1 to 1000;
		v=5;
		output;
	end;
	v=10;
	output;
	v=15;
	output;
	v=20;
	output;
run;

ods listing gpath='/home/xxx/AHAGM/images';
ods graphics / imagename="pie1" imagefmt=png;
title "pie1";

proc sgpie data=pie1;
	pie v / otherpercent=0;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get this result. My understanding is that using "otherpercent=0" should cause all slices to appear and be labelled.&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="sas1.jpg" style="width: 818px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/115628i8D41322297E83B48/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas1.jpg" alt="sas1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 16:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Possible-bug-in-proc-sgpie/m-p/989174#M25929</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2026-06-03T16:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug in proc sgpie</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Possible-bug-in-proc-sgpie/m-p/989178#M25930</link>
      <description>&lt;P&gt;I think you need to specify the label with OTHERLABEL&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data pie1;
	do i=1 to 1000;
		v=5;
		output;
	end;
	v=10;
	output;
	v=15;
	output;
	v=20;
	output;
run;

*ods listing gpath='/home/xxx/AHAGM/images';
*ods graphics / imagename="pie1" imagefmt=png;
*title "pie1";

proc sgpie data=pie1;
	pie v / otherpercent=1 otherlabel='Other';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-06-03 133658.png" style="width: 642px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/115630iA1A5BABF019268ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-06-03 133658.png" alt="Screenshot 2026-06-03 133658.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 18:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Possible-bug-in-proc-sgpie/m-p/989178#M25930</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2026-06-03T18:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug in proc sgpie</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Possible-bug-in-proc-sgpie/m-p/989187#M25931</link>
      <description>&lt;P&gt;No, what I'm trying to get is a slice for every value of v...so it should be count 1000 for 5, and count 1 for 10, 15, and 20. Instead, I'm only getting a count of 1 for 20.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 00:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Possible-bug-in-proc-sgpie/m-p/989187#M25931</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2026-06-04T00:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug in proc sgpie</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Possible-bug-in-proc-sgpie/m-p/989212#M25932</link>
      <description>&lt;P&gt;You could try GTL. It looks like GTL have better control.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data pie1;
	do i=1 to 1000;
		v=5;
		output;
	end;

	v=10;
	output;
	v=15;
	output;
	v=20;
	output;


run;


proc template;
define statgraph simplepie;
begingraph;
entrytitle "Car Models by Origin";
layout region;
piechart category=v / datalabellocation=outside OTHERSLICE=FALSE LABELFITPOLICY=NONE OUTLINEATTRS=(thickness=0);
endlayout;
endgraph;
end;
run;
proc sgrender data=pie1
template=simplepie;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1780554181108.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/115655iC4F229EE841109C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1780554181108.png" alt="Ksharp_0-1780554181108.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 06:23:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Possible-bug-in-proc-sgpie/m-p/989212#M25932</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-06-04T06:23:09Z</dc:date>
    </item>
  </channel>
</rss>

