<?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: gbarline in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/gbarline/m-p/105549#M258492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Bar and Plot statements allow use of separate LEGEND references. In the LEGEND definition there are options for location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may be looking at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;legend1 position=(bottom left outside);&lt;/P&gt;&lt;P&gt;legend2 position=(bottom right outside);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;legend=legend1 to the options for BAR&lt;/P&gt;&lt;P&gt;legend=legend2 to the options for the first plot statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2012 18:00:51 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2012-10-24T18:00:51Z</dc:date>
    <item>
      <title>gbarline</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gbarline/m-p/105548#M258491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when using gbarline , the legend of bar and the legend of plot are getting displayed one above the other below the X-axis.. How do I display them horizontally in the same line just below the X-axis?&lt;/P&gt;&lt;P&gt;they are getting displayed like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Legend_bar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Legend_line&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i wanted to get them displayed as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Legend_bar&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Legend_line&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 17:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gbarline/m-p/105548#M258491</guid>
      <dc:creator>kds</dc:creator>
      <dc:date>2012-10-24T17:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: gbarline</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gbarline/m-p/105549#M258492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Bar and Plot statements allow use of separate LEGEND references. In the LEGEND definition there are options for location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may be looking at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;legend1 position=(bottom left outside);&lt;/P&gt;&lt;P&gt;legend2 position=(bottom right outside);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;legend=legend1 to the options for BAR&lt;/P&gt;&lt;P&gt;legend=legend2 to the options for the first plot statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 18:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gbarline/m-p/105549#M258492</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-10-24T18:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: gbarline</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gbarline/m-p/105550#M258493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried ur suggestion with the code which is below:&lt;/P&gt;&lt;P&gt;---------- -------------------------&lt;/P&gt;&lt;P&gt;data gbarline_ex;&lt;BR /&gt;input x1 $5. y1 y2;&lt;BR /&gt;cards;&lt;BR /&gt;rang1 1000 1&lt;BR /&gt;rang2 2000 2&lt;BR /&gt;rang3 3000 3&lt;BR /&gt;rang4 4000 4&lt;BR /&gt;rang5 5000 5&lt;BR /&gt;rang6 6000 6&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;symbol1 v=dot i=join c=red h=0.5 l=1;&lt;BR /&gt;legend1 label=none position=(bottom left outside);&lt;BR /&gt;legend2 label=none position=(bottom right outside);&lt;BR /&gt;axis1 label=none;&lt;BR /&gt;axis2 label=none;&lt;BR /&gt;proc gbarline data=gbarline_ex;&lt;BR /&gt; bar x1 / discrete sumvar=y1 raxis=axis1 legend=legend1;&lt;BR /&gt; plot /sumvar=y2 axis=axis2 legend=legend2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;----------------------------------- ---------------&lt;/P&gt;&lt;P&gt;but the legends are going extreme left and extreme right....and not getting displayed below the X-axis.&lt;/P&gt;&lt;P&gt;here is the output :&lt;/P&gt;&lt;P&gt;Also any idea why the blue legend is showing label as X1 , it should be Y1 ...right?&lt;/P&gt;&lt;P&gt;Please suggest...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="barline1.jpeg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2641_barline1.jpeg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 18:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gbarline/m-p/105550#M258493</guid>
      <dc:creator>kds</dc:creator>
      <dc:date>2012-10-24T18:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: gbarline</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gbarline/m-p/105551#M258494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove the OUTSIDE part of the position then.&lt;/P&gt;&lt;P&gt;The Legend is associated with the BAR or PLOT variable. X1 is your BAR variable and the position for legend1 says to position on the left side of the chart. If you want the Y2 on the left then switch the RIGHT and LEFT in the legend positions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 19:56:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gbarline/m-p/105551#M258494</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-10-24T19:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: gbarline</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gbarline/m-p/105552#M258495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I removed "outside"&amp;nbsp; still getting both the legends on the extreme end.&amp;nbsp; Also tried switching RIGHT and LEFT as suggested ..but&amp;nbsp;&amp;nbsp; no success.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2012 20:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gbarline/m-p/105552#M258495</guid>
      <dc:creator>kds</dc:creator>
      <dc:date>2012-10-28T20:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: gbarline</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gbarline/m-p/795503#M258496</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am also having this problem. I found your post in the discussion forum, although I can see it was from a long time ago.&lt;/P&gt;&lt;P&gt;Did you manage to find a solution?&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 15:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gbarline/m-p/795503#M258496</guid>
      <dc:creator>ghbg</dc:creator>
      <dc:date>2022-02-10T15:13:33Z</dc:date>
    </item>
  </channel>
</rss>

