<?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: Formats not working in some gchart procedures in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Formats-not-working-in-some-gchart-procedures/m-p/315043#M11067</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I don't see a format or a label statement in your code. You didn't post any data, so no one can test your code or make suggestions. The screen shots below were taken using SASHELP.PRDSALE. As you can see, there is a concentric DONUT for each unique value of COUNTRY (the SUBGROUP variable) and each segment in the DONUT is colored based on the values of PRODUCT. So, the legend reflects the values for PRODUCT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's output using only the LABEL statement:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6074i8F9A2F4426C37184/image-size/original?v=v2&amp;amp;px=-1" alt="gchart1_only_label.png" title="gchart1_only_label.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; And, here's output using the LABEL and FORMAT (with a user-defined format):&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6075i8B8E8D5ABD20F441/image-size/original?v=v2&amp;amp;px=-1" alt="gchart2_use_label_and_format.png" title="gchart2_use_label_and_format.png" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2016 01:23:39 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2016-11-29T01:23:39Z</dc:date>
    <item>
      <title>Formats not working in some gchart procedures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Formats-not-working-in-some-gchart-procedures/m-p/314967#M11066</link>
      <description>&lt;P&gt;I am working on SAS 9.4 on a windows machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using PROC GCHART to produce donut charts that are divided by whether someone is on the same or opposite gendered team.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's working great except some of the charts have a legend that does not include the formats but rather, numbers that are not even present in the variable. The odd thing is that the legend is fine for some charts and not for others even though the code and the attributes of the variables are the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;**** This one works see first graph on attachment*****&lt;/P&gt;&lt;P&gt;PROC GCHART DATA=gender;&lt;BR /&gt;TITLE "Type of Injury By Gender Opposing Participation";&lt;BR /&gt;DONUT q20 / SUBGROUP=oppgen VALUE=inside PERCENT=INSIDE&lt;BR /&gt;LEGEND;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**** This one doesn't see second graph on attachment****&lt;/P&gt;&lt;P&gt;PROC GCHART DATA=gender;&lt;BR /&gt;TITLE "Injury occured in practice or competition By Gender Opposing Participation";&lt;BR /&gt;DONUT q10 / SUBGROUP=oppgen VALUE=inside PERCENT=INSIDE&lt;BR /&gt;LEGEND;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Those values are not even in the data set. 1="competition" 2=practice 3=performance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things I have tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I have made a HBAR using SGPLOT -- the labels work here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I have checked that the formats are attached&lt;/P&gt;&lt;P&gt;3) I have tried to change the numeric variable into a character but get all missing values then.&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) I have used a format statement within the PROC GCHART&lt;/P&gt;&lt;P&gt;5) I have re-created the dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;6) I have tried using the "LEGEND VALUES= Statement" but it says that it is the wrong place or thinks I am specifying the places for the labels of the pie and wants "INSIDE" "ARROW" etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated -- I have not been able to find this happening to anyone else on the google or the forum and I am tearing my hair out! Thank you, Alex&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 21:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Formats-not-working-in-some-gchart-procedures/m-p/314967#M11066</guid>
      <dc:creator>erkenbea</dc:creator>
      <dc:date>2016-11-28T21:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Formats not working in some gchart procedures</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Formats-not-working-in-some-gchart-procedures/m-p/315043#M11067</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I don't see a format or a label statement in your code. You didn't post any data, so no one can test your code or make suggestions. The screen shots below were taken using SASHELP.PRDSALE. As you can see, there is a concentric DONUT for each unique value of COUNTRY (the SUBGROUP variable) and each segment in the DONUT is colored based on the values of PRODUCT. So, the legend reflects the values for PRODUCT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's output using only the LABEL statement:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6074i8F9A2F4426C37184/image-size/original?v=v2&amp;amp;px=-1" alt="gchart1_only_label.png" title="gchart1_only_label.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; And, here's output using the LABEL and FORMAT (with a user-defined format):&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6075i8B8E8D5ABD20F441/image-size/original?v=v2&amp;amp;px=-1" alt="gchart2_use_label_and_format.png" title="gchart2_use_label_and_format.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 01:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Formats-not-working-in-some-gchart-procedures/m-p/315043#M11067</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-11-29T01:23:39Z</dc:date>
    </item>
  </channel>
</rss>

