<?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 Set PIECHART Slice Colors for Unknown Attributes in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Set-PIECHART-Slice-Colors-for-Unknown-Attributes/m-p/658056#M20042</link>
    <description>&lt;P&gt;I am trying to create a template that will fill slices of a pie using PROC Template and PIECHART. I know I can use DISCRETEATTRMAP, but the problem is I am using this template on automated pie creations with the OTHERSLICE= option enabled, so I don't necessarily know which attributes (or how many) will show up in any given run. I tried using FILLATTRS=(COLOR=()), but this seemed to only allow for one color. Is it possible to define my own color rotation to be used in this manner?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define statgraph top5pie;
begingraph;
layout region;
	piechart category = injsite /
	datalabellocation = inside
	datalabelcontent =(percent)
	datalabelattrs = (family='Arial/bold' weight=bold size=12pt color=&amp;amp;Dgold.)
	categorydirection = clockwise
	dataskin = crisp
	start = 180 name = 'pie'
	otherslice=true
  	othersliceopts=(type=percent percent=10 label="Others (Sites &amp;lt; 10% of Total)");
	discretelegend 'pie' /
	title = 'Injury Sites'
	titleattrs=(family='Arial' size=12pt)
	border=false;
endlayout;
endgraph;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jun 2020 13:16:47 GMT</pubDate>
    <dc:creator>tburus</dc:creator>
    <dc:date>2020-06-12T13:16:47Z</dc:date>
    <item>
      <title>Set PIECHART Slice Colors for Unknown Attributes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Set-PIECHART-Slice-Colors-for-Unknown-Attributes/m-p/658056#M20042</link>
      <description>&lt;P&gt;I am trying to create a template that will fill slices of a pie using PROC Template and PIECHART. I know I can use DISCRETEATTRMAP, but the problem is I am using this template on automated pie creations with the OTHERSLICE= option enabled, so I don't necessarily know which attributes (or how many) will show up in any given run. I tried using FILLATTRS=(COLOR=()), but this seemed to only allow for one color. Is it possible to define my own color rotation to be used in this manner?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define statgraph top5pie;
begingraph;
layout region;
	piechart category = injsite /
	datalabellocation = inside
	datalabelcontent =(percent)
	datalabelattrs = (family='Arial/bold' weight=bold size=12pt color=&amp;amp;Dgold.)
	categorydirection = clockwise
	dataskin = crisp
	start = 180 name = 'pie'
	otherslice=true
  	othersliceopts=(type=percent percent=10 label="Others (Sites &amp;lt; 10% of Total)");
	discretelegend 'pie' /
	title = 'Injury Sites'
	titleattrs=(family='Arial' size=12pt)
	border=false;
endlayout;
endgraph;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 13:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Set-PIECHART-Slice-Colors-for-Unknown-Attributes/m-p/658056#M20042</guid>
      <dc:creator>tburus</dc:creator>
      <dc:date>2020-06-12T13:16:47Z</dc:date>
    </item>
  </channel>
</rss>

