<?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 Center Justifying Text Inside a GChart Bar Chart in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Center-Justifying-Text-Inside-a-GChart-Bar-Chart/m-p/66411#M7692</link>
    <description>Hello Everyone,&lt;BR /&gt;
&lt;BR /&gt;
I created a 100% stacked horizontal bar chart using PROC GChart with the following code:&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=&amp;amp;input_ds;&lt;BR /&gt;
	hbar region /   &lt;BR /&gt;
nozero&lt;BR /&gt;
nostats &lt;BR /&gt;
raxis=axis2 &lt;BR /&gt;
maxis=axis1 &lt;BR /&gt;
percent&lt;BR /&gt;
sumvar=per &lt;BR /&gt;
legend = legend1&lt;BR /&gt;
type=sum &lt;BR /&gt;
inside=subpercent &lt;BR /&gt;
subgroup=value &lt;BR /&gt;
width=2; &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
This code produces a variable number of bars with each bar subdivided by value and has several sub-group percentages inside each bar.  The problem is that the percentages appear to be right justified.  Is there a way I can have them be center justified?   &lt;BR /&gt;
&lt;BR /&gt;
I would like the text that is inside each bar to be center justified kind of like how it is in MS Excel or in this picture: &lt;A href="http://peltiertech.com/WordPress/wp-content/img200808/GasPricesBarChart.png" target="_blank"&gt;http://peltiertech.com/WordPress/wp-content/img200808/GasPricesBarChart.png&lt;/A&gt;  ..... rather than getting numbers that are right justified as they are in the following picture: &lt;A href="http://robslink.com/SAS/democd18/insur.htm" target="_blank"&gt;http://robslink.com/SAS/democd18/insur.htm&lt;/A&gt;.  Any ideas if this is possible, and if so how to do it?</description>
    <pubDate>Thu, 18 Dec 2008 01:11:18 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-12-18T01:11:18Z</dc:date>
    <item>
      <title>Center Justifying Text Inside a GChart Bar Chart</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Center-Justifying-Text-Inside-a-GChart-Bar-Chart/m-p/66411#M7692</link>
      <description>Hello Everyone,&lt;BR /&gt;
&lt;BR /&gt;
I created a 100% stacked horizontal bar chart using PROC GChart with the following code:&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data=&amp;amp;input_ds;&lt;BR /&gt;
	hbar region /   &lt;BR /&gt;
nozero&lt;BR /&gt;
nostats &lt;BR /&gt;
raxis=axis2 &lt;BR /&gt;
maxis=axis1 &lt;BR /&gt;
percent&lt;BR /&gt;
sumvar=per &lt;BR /&gt;
legend = legend1&lt;BR /&gt;
type=sum &lt;BR /&gt;
inside=subpercent &lt;BR /&gt;
subgroup=value &lt;BR /&gt;
width=2; &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
This code produces a variable number of bars with each bar subdivided by value and has several sub-group percentages inside each bar.  The problem is that the percentages appear to be right justified.  Is there a way I can have them be center justified?   &lt;BR /&gt;
&lt;BR /&gt;
I would like the text that is inside each bar to be center justified kind of like how it is in MS Excel or in this picture: &lt;A href="http://peltiertech.com/WordPress/wp-content/img200808/GasPricesBarChart.png" target="_blank"&gt;http://peltiertech.com/WordPress/wp-content/img200808/GasPricesBarChart.png&lt;/A&gt;  ..... rather than getting numbers that are right justified as they are in the following picture: &lt;A href="http://robslink.com/SAS/democd18/insur.htm" target="_blank"&gt;http://robslink.com/SAS/democd18/insur.htm&lt;/A&gt;.  Any ideas if this is possible, and if so how to do it?</description>
      <pubDate>Thu, 18 Dec 2008 01:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Center-Justifying-Text-Inside-a-GChart-Bar-Chart/m-p/66411#M7692</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-18T01:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Center Justifying Text Inside a GChart Bar Chart</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Center-Justifying-Text-Inside-a-GChart-Bar-Chart/m-p/66412#M7693</link>
      <description>SAS support website indicates that the SAS/Graph DEVICE driver ACTIVEX does support VALUE=INSIDE, even though the SASLOG indicates otherwise (at least in SAS 8).  So, it may be that you can specify VALUE=(JUSTIFY=CENTER) on the AXISn statement to achieve your desired result.  If not, I would recommend contacting SAS support for guidance and to get your interests registered with the technical staff, for future consideration.&lt;BR /&gt;
&lt;BR /&gt;
Also, here is a Google advanced search argument you might want to use to identify SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  resource references for your post/question:&lt;BR /&gt;
&lt;BR /&gt;
+gchart +inside +justify +center +axis +value site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
TS-602 &lt;BR /&gt;
&lt;BR /&gt;
Compatibility Document for the ACTIVEX Device Driver - Version 8 Releases &lt;BR /&gt;
**This document applies to Version 8 Releases. If you are running SAS/GRAPH 9 or above, please refer to the documentation or online help for the most recent information. &lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts602.html#BAR" target="_blank"&gt;http://support.sas.com/techsup/technote/ts602.html#BAR&lt;/A&gt;</description>
      <pubDate>Thu, 01 Jan 2009 20:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Center-Justifying-Text-Inside-a-GChart-Bar-Chart/m-p/66412#M7693</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-01-01T20:32:57Z</dc:date>
    </item>
  </channel>
</rss>

