<?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 Manage pie chart text colours in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Manage-pie-chart-text-colours/m-p/106325#M3932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I would like to create a pie chart with SAS but I have special needs.&lt;/P&gt;&lt;P&gt;In the graph it should be possible to change the colour of the text based on an independent variable.&lt;/P&gt;&lt;P&gt;What I want to achieve is shown below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pie_chart.PNG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2263_pie_chart.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;PROC GCHART can decide if the value are shown inside or outside the graph and the colours of them.&lt;/P&gt;&lt;P&gt;But what about a mixture of them, Is this possible with SAS system?&lt;/P&gt;&lt;P&gt;Is annotation dataset the only way to solve this problem?&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2012 10:57:48 GMT</pubDate>
    <dc:creator>paolo_santin</dc:creator>
    <dc:date>2012-07-13T10:57:48Z</dc:date>
    <item>
      <title>Manage pie chart text colours</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Manage-pie-chart-text-colours/m-p/106325#M3932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I would like to create a pie chart with SAS but I have special needs.&lt;/P&gt;&lt;P&gt;In the graph it should be possible to change the colour of the text based on an independent variable.&lt;/P&gt;&lt;P&gt;What I want to achieve is shown below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pie_chart.PNG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2263_pie_chart.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;PROC GCHART can decide if the value are shown inside or outside the graph and the colours of them.&lt;/P&gt;&lt;P&gt;But what about a mixture of them, Is this possible with SAS system?&lt;/P&gt;&lt;P&gt;Is annotation dataset the only way to solve this problem?&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 10:57:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Manage-pie-chart-text-colours/m-p/106325#M3932</guid>
      <dc:creator>paolo_santin</dc:creator>
      <dc:date>2012-07-13T10:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Manage pie chart text colours</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Manage-pie-chart-text-colours/m-p/106326#M3933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way would be to annotate the text - then you have programmatical control over exactly what the label says, and also the exact color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do that, you'll probably need to use the cntl2txt annotate function (in combination with others), as described here (note this example annotates both the pie, and the label):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#annodict-cntl2txt-func.htm"&gt;http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#annodict-cntl2txt-func.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using cntl2txt is a bit 'tricky' (I'm not very good with it, and I don't think I have any examples of using it to label a pie chart).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 12:12:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Manage-pie-chart-text-colours/m-p/106326#M3933</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-07-13T12:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Manage pie chart text colours</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Manage-pie-chart-text-colours/m-p/106327#M3934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert and thank you for your fast answer!&lt;/P&gt;&lt;P&gt;As you said I don't think there are other ways than create an annotation dataset with all the informations about slice colors, label and everything else.&lt;/P&gt;&lt;P&gt;I've found this paper on the net and it seems to be a very nice starting point.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.mwsug.org/proceedings/2011/coders/MWSUG-2011-CC13.pdf"&gt;http://www.mwsug.org/proceedings/2011/coders/MWSUG-2011-CC13.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Paolo&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 14:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Manage-pie-chart-text-colours/m-p/106327#M3934</guid>
      <dc:creator>paolo_santin</dc:creator>
      <dc:date>2012-07-13T14:00:26Z</dc:date>
    </item>
  </channel>
</rss>

