<?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 Change Axis Values on Bar Graph in EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-Axis-Values-on-Bar-Graph-in-EG/m-p/121383#M10046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a bar graph that I have created and simply need to change the scaling (values) of one of the axis'.&amp;nbsp; Instead of starting at 0, I want to start at 500 and end at 700 to see a closer relationship to each value.&amp;nbsp; I've researched this and it seems there is not a way to do this in EG without coding.&amp;nbsp; I can easily populate it over to Excel and do this, but want to do it in SAS.&amp;nbsp; I know EG has limitations and am not an export on the code, even though I can do some basic procedures.&amp;nbsp; Can anyone shed any light?&amp;nbsp; It seems such an easy thing to NOT be able to do!&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CJ in SC&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2012 15:26:39 GMT</pubDate>
    <dc:creator>SASintheSouth</dc:creator>
    <dc:date>2012-09-13T15:26:39Z</dc:date>
    <item>
      <title>Change Axis Values on Bar Graph in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-Axis-Values-on-Bar-Graph-in-EG/m-p/121383#M10046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a bar graph that I have created and simply need to change the scaling (values) of one of the axis'.&amp;nbsp; Instead of starting at 0, I want to start at 500 and end at 700 to see a closer relationship to each value.&amp;nbsp; I've researched this and it seems there is not a way to do this in EG without coding.&amp;nbsp; I can easily populate it over to Excel and do this, but want to do it in SAS.&amp;nbsp; I know EG has limitations and am not an export on the code, even though I can do some basic procedures.&amp;nbsp; Can anyone shed any light?&amp;nbsp; It seems such an easy thing to NOT be able to do!&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CJ in SC&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 15:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-Axis-Values-on-Bar-Graph-in-EG/m-p/121383#M10046</guid>
      <dc:creator>SASintheSouth</dc:creator>
      <dc:date>2012-09-13T15:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change Axis Values on Bar Graph in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-Axis-Values-on-Bar-Graph-in-EG/m-p/121384#M10047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Depending on the procedure you used, it might be done in the ACTION statement (VBAR, for example) or it can be done with an AXIS statement. You will need to look at the code that EG generates. Usually, there is a little icon of a table with a red trackball at the bottom (inside the task) that will reveal the code. If you look at the procedure being used, you should see whether it is GPLOT or GCHART (or some other procedure).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then look at the action statement -- either VBAR or HBAR -- you will use either RAXIS (probably) within the procedure to set values for the response axis -- either directly or linking to an AXIS statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The doc has some good examples. It's not hard, but there are several ways to do it changing the code. I thought that EG built an AXIS statement, but I'm not in a position to check right now. So it might be as easy as just subsituting your AXIS statement with a different value for ORDER= for the EG AXIS statement. Worst case, is you'll have to modify the code to include an AXIS statement. Anyway, I thought if you used the Bar Chart Task (instead of the Wizard), you could actually modify the AXIS statement that EG builds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't run anything to test it. So this code is untested using SASHELP.SHOES, but you should be able to see with #2 or #3, if I haven't made any typos that you can start the axis at some value other than 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc gchart data=sashelp.shoes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; where region in ('United States', 'Canada', 'Pacific');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; title1 "1) Sales for each Region starting at 0";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; vbar Region&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / sumvar=Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raxis=0 to 5000000 by 500000;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc gchart data=sashelp.shoes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; where region in ('United States', 'Canada', 'Pacific');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; title1 "2) Sales for each Region starting at 250,000 (RAXIS)";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; vbar Region&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / sumvar=Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raxis=250000 to 7500000 by 500000;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;axis1 order=(250000 to 7500000 by 500000);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc gchart data=sashelp.shoes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; where region in ('United States', 'Canada', 'Pacific');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; title1 "3) Sales for each Region starting at 250,000 (AXIS stmt)";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; vbar Region&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / sumvar=Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raxis=axis1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;goptions reset=all;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 18:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-Axis-Values-on-Bar-Graph-in-EG/m-p/121384#M10047</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-09-13T18:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Change Axis Values on Bar Graph in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-Axis-Values-on-Bar-Graph-in-EG/m-p/121385#M10048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Cynthia, it was the&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;axis1 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;order=(250000 to 7500000 by 500000);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am such a newbie I was using the Wizard and no the other way.&amp;nbsp; If I had used that way the first time I wouldn't have had that problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 19:11:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-Axis-Values-on-Bar-Graph-in-EG/m-p/121385#M10048</guid>
      <dc:creator>SASintheSouth</dc:creator>
      <dc:date>2012-09-13T19:11:14Z</dc:date>
    </item>
  </channel>
</rss>

