<?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: Label for a missing value in pie chart in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43781#M1448</link>
    <description>Thanks Robert. &lt;BR /&gt;
Obviously that works. But I don't want change the dataset by replacing missing character value with some other characters such as 'Missing' as you suggested.&lt;BR /&gt;
I believe there must be some other way to go.</description>
    <pubDate>Fri, 03 Dec 2010 00:30:44 GMT</pubDate>
    <dc:creator>Fisher</dc:creator>
    <dc:date>2010-12-03T00:30:44Z</dc:date>
    <item>
      <title>Label for a missing value in pie chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43779#M1446</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I am not experienced with pie chart. I had a problem to create my desired pie chart.&lt;BR /&gt;
here is my data:&lt;BR /&gt;
   data temp;   &lt;BR /&gt;
      input Role $  Rate;&lt;BR /&gt;
      datalines;&lt;BR /&gt;
   LPN 0.27&lt;BR /&gt;
   RN  0.64&lt;BR /&gt;
   .   0.09&lt;BR /&gt;
   ;&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
after I run following procedure, I got a pie chart without any label for the missing value for variable Role. &lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=temp;  &lt;BR /&gt;
 pie Role /sumvar=rate &lt;BR /&gt;
           other=0&lt;BR /&gt;
           midpoints='' 'LPN' 'RN'&lt;BR /&gt;
           percent=arrow		  &lt;BR /&gt;
           slice=arrow&lt;BR /&gt;
           noheading;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
However, I like the slice for the missing value labeled as 'Missing'. Anyone can help me with this? I will appreciate it very much.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Fisher</description>
      <pubDate>Fri, 03 Dec 2010 00:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43779#M1446</guid>
      <dc:creator>Fisher</dc:creator>
      <dc:date>2010-12-03T00:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Label for a missing value in pie chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43780#M1447</link>
      <description>Perhaps something like this? &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data temp;   &lt;BR /&gt;
      input Role $  Rate;&lt;BR /&gt;
      datalines;&lt;BR /&gt;
   LPN 0.27&lt;BR /&gt;
   RN  0.64&lt;BR /&gt;
   Missing   0.09&lt;BR /&gt;
   ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=temp;  &lt;BR /&gt;
 pie Role /sumvar=rate &lt;BR /&gt;
           other=0&lt;BR /&gt;
           midpoints='Missing' 'LPN' 'RN'&lt;BR /&gt;
           percent=arrow		  &lt;BR /&gt;
           slice=arrow&lt;BR /&gt;
           noheading;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 03 Dec 2010 00:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43780#M1447</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-12-03T00:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Label for a missing value in pie chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43781#M1448</link>
      <description>Thanks Robert. &lt;BR /&gt;
Obviously that works. But I don't want change the dataset by replacing missing character value with some other characters such as 'Missing' as you suggested.&lt;BR /&gt;
I believe there must be some other way to go.</description>
      <pubDate>Fri, 03 Dec 2010 00:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43781#M1448</guid>
      <dc:creator>Fisher</dc:creator>
      <dc:date>2010-12-03T00:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Label for a missing value in pie chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43782#M1449</link>
      <description>Ahh! - that's a little more complex!&lt;BR /&gt;
&lt;BR /&gt;
In that case, you could use a user-defined format, so the ' ' value prints as the word 'Missing' ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data temp;   &lt;BR /&gt;
      input Role $  Rate;&lt;BR /&gt;
      datalines;&lt;BR /&gt;
   LPN 0.27&lt;BR /&gt;
   RN  0.64&lt;BR /&gt;
   .   0.09&lt;BR /&gt;
   ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
value $piefmt&lt;BR /&gt;
' ' = "Missing"&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=temp;  &lt;BR /&gt;
format Role $piefmt.;&lt;BR /&gt;
 pie Role /sumvar=rate &lt;BR /&gt;
           other=0&lt;BR /&gt;
           midpoints='Missing' 'LPN' 'RN'&lt;BR /&gt;
           percent=arrow		  &lt;BR /&gt;
           slice=arrow&lt;BR /&gt;
           noheading;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=temp;&lt;BR /&gt;
format Role $piefmt.;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 03 Dec 2010 00:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43782#M1449</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-12-03T00:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Label for a missing value in pie chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43783#M1450</link>
      <description>Thanks Robert. This is definitely a better way to achieve it, I like it.&lt;BR /&gt;
By the way, there are not any other graph options to handle this case? I believe there should be some.&lt;BR /&gt;
&lt;BR /&gt;
Anyway, thanks again, you give me a professional solution. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 03 Dec 2010 13:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43783#M1450</guid>
      <dc:creator>Fisher</dc:creator>
      <dc:date>2010-12-03T13:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Label for a missing value in pie chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43784#M1451</link>
      <description>An axis statement would allow *much* finer control of the tickmark values ... but the axis statement can only be used with bar charts (not pie charts).  &lt;BR /&gt;
&lt;BR /&gt;
Perhaps this is a sneaky/subtle way to nudge users towards using bar charts instead of pie charts! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Fri, 03 Dec 2010 14:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43784#M1451</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-12-03T14:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Label for a missing value in pie chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43785#M1452</link>
      <description>Nudge?  We need to bulldoze!&lt;BR /&gt;
&lt;BR /&gt;
Save the pies for dessert!</description>
      <pubDate>Mon, 06 Dec 2010 20:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Label-for-a-missing-value-in-pie-chart/m-p/43785#M1452</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2010-12-06T20:39:47Z</dc:date>
    </item>
  </channel>
</rss>

