<?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: Proc Gchart - format frequency midpoint values in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gchart-format-frequency-midpoint-values/m-p/566656#M18313</link>
    <description>&lt;P&gt;Try this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=have;
 xaxis valuesformat=commax12.;
 hbar afd;
 yaxistable afd / stat=freq;
 yaxistable afd / stat=percent;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2019 17:46:29 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2019-06-17T17:46:29Z</dc:date>
    <item>
      <title>Proc Gchart - format frequency midpoint values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gchart-format-frequency-midpoint-values/m-p/566649#M18312</link>
      <description>&lt;P&gt;Hi community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't find a way to format frequency values in proc gchart. I made the following example with automatic midpoint values 10000, 20000 etc, and I want the values formatted with commax12.0, so the values are shown as 10.000, 20.000 etc. Any help would be much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Make some test data;
data have (drop=i);;
	do afd = 'Adf1','Afd2','Afd3','Afd4';
		do j = 1 to ranuni(3)*50000;
			output;
		end;
	end;
run;

* Plot afd / frequency;
proc gchart data=have;
	hbar afd / type=freq;
run;
quit;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 17:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gchart-format-frequency-midpoint-values/m-p/566649#M18312</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2019-06-17T17:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gchart - format frequency midpoint values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gchart-format-frequency-midpoint-values/m-p/566656#M18313</link>
      <description>&lt;P&gt;Try this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=have;
 xaxis valuesformat=commax12.;
 hbar afd;
 yaxistable afd / stat=freq;
 yaxistable afd / stat=percent;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 17:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gchart-format-frequency-midpoint-values/m-p/566656#M18313</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-06-17T17:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gchart - format frequency midpoint values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gchart-format-frequency-midpoint-values/m-p/566809#M18319</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12887"&gt;@ErikLund_Jensen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the &lt;A href="https://documentation.sas.com/?docsetId=graphref&amp;amp;docsetTarget=p0nse2mlct7rs3n1vam18wd3u1na.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n0678tipebdotin0zl4xemmw5uni" target="_blank" rel="noopener"&gt;STATFMT= option&lt;/A&gt; of the HBAR statement:&lt;/P&gt;
&lt;PRE&gt;hbar afd / type=freq &lt;STRONG&gt;&lt;FONT color="#008000"&gt;statfmt=commax12.&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;/PRE&gt;
&lt;P&gt;It applies to the frequency table as well, except for the percentages, though.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 09:02:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gchart-format-frequency-midpoint-values/m-p/566809#M18319</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-06-18T09:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gchart - format frequency midpoint values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gchart-format-frequency-midpoint-values/m-p/566865#M18322</link>
      <description>&lt;P&gt;Thanks to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;for input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sgplot seems a good alternative to gchart, but it would be rather complicated to change to a new procedure with a different syntax in several reports, where most of the formatting and layout control is in macro variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I am very happy that it could be done with a minor change to Proc gchart.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 13:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gchart-format-frequency-midpoint-values/m-p/566865#M18322</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2019-06-18T13:37:32Z</dc:date>
    </item>
  </channel>
</rss>

