<?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 Gbarline axis settings in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Gbarline-axis-settings/m-p/39413#M1256</link>
    <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
In Proc Gbarline Is there any way to force a line plot to use the same axis (or axis settings) as the bar plots?&lt;BR /&gt;
&lt;BR /&gt;
I can’t do it manually since I am using a BY variable to produce many charts. &lt;BR /&gt;
&lt;BR /&gt;
proc gbarline data= test1;&lt;BR /&gt;
by sektor;&lt;BR /&gt;
bar aar / discrete sumvar=col1 subgroup=_NAME_;&lt;BR /&gt;
plot / sumvar=col1;&lt;BR /&gt;
run;</description>
    <pubDate>Wed, 23 Jun 2010 11:38:07 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-06-23T11:38:07Z</dc:date>
    <item>
      <title>Gbarline axis settings</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Gbarline-axis-settings/m-p/39413#M1256</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
In Proc Gbarline Is there any way to force a line plot to use the same axis (or axis settings) as the bar plots?&lt;BR /&gt;
&lt;BR /&gt;
I can’t do it manually since I am using a BY variable to produce many charts. &lt;BR /&gt;
&lt;BR /&gt;
proc gbarline data= test1;&lt;BR /&gt;
by sektor;&lt;BR /&gt;
bar aar / discrete sumvar=col1 subgroup=_NAME_;&lt;BR /&gt;
plot / sumvar=col1;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 23 Jun 2010 11:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Gbarline-axis-settings/m-p/39413#M1256</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-23T11:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Gbarline axis settings</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Gbarline-axis-settings/m-p/39414#M1257</link>
      <description>I don't think there is a way to guarantee both the left &amp;amp; right side use the same axis scale, without specifying the scale in an axis statement.  Which, as you mention isn't really an option when you're using a "by" statement (because each by-group might need a different axis scale).&lt;BR /&gt;
&lt;BR /&gt;
If you really-really-really want to do it, here's one way I can think of...&lt;BR /&gt;
&lt;BR /&gt;
Rather than using a 'by statement', get a list of all the unique by-values into a data set, and then loop through that data set and each time through call a macro and pass to it what-would-be the 'by value'.  The macro would subset the data (based on the passed-in parameter), and then do some calculations and pick a good axis min/max/by values would be, and hard-code them into an axis statement (each time the macro is called, and then call gbarline.  You'd basically be implementing the 'by processing' manually, and also implementing the 'axis auto-scaling' manually ... which would be quite a bit of work.</description>
      <pubDate>Wed, 23 Jun 2010 14:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Gbarline-axis-settings/m-p/39414#M1257</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-06-23T14:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Gbarline axis settings</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Gbarline-axis-settings/m-p/39415#M1258</link>
      <description>Another approach is to calculate the max and min Y values across the two axes within a BY group (MEANS/SUMMARY). and then merge those two values back into the plot data as unplottable points (x axis missing) for both axes.</description>
      <pubDate>Wed, 23 Jun 2010 19:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Gbarline-axis-settings/m-p/39415#M1258</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-06-23T19:33:58Z</dc:date>
    </item>
  </channel>
</rss>

