<?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: Creating a positive-negative bar chart in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-positive-negative-bar-chart/m-p/727125#M226083</link>
    <description>Simple, elegant and perfect solution - thank you!</description>
    <pubDate>Wed, 17 Mar 2021 14:40:27 GMT</pubDate>
    <dc:creator>Rodcjones</dc:creator>
    <dc:date>2021-03-17T14:40:27Z</dc:date>
    <item>
      <title>Creating a positive-negative bar chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-positive-negative-bar-chart/m-p/727120#M226080</link>
      <description>&lt;P&gt;I am seeking a reference that will help me create what I believe is called a "positive-negative" bar chart (although I'm not sure). Here's an example visual I found on the web at&amp;nbsp;&lt;A href="http://beatexcel.com/positive-negative-bar-chart/" target="_blank"&gt;http://beatexcel.com/positive-negative-bar-chart/&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rodcjones_0-1615989960500.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56055iBE7E0AFDD1E0C170/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rodcjones_0-1615989960500.png" alt="Rodcjones_0-1615989960500.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the SAS documentation I found this reference (specifically the BASELINEINTERCEPT statement)&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=grstatgraph&amp;amp;docsetTarget=n1dlakkx61v72in1k3ebm8rz18qd.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=grstatgraph&amp;amp;docsetTarget=n1dlakkx61v72in1k3ebm8rz18qd.htm&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this is not helpful to me because I prefer/need to do SGPLOT or other SAS Graphics procedures rather than this if possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a sample dataset I'm trying to graph in this way.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data have;&lt;BR /&gt;input day $ value ;&lt;BR /&gt;datalines;&lt;BR /&gt;Wednesday 1.13203258&lt;BR /&gt;Tuesday 1.055489878&lt;BR /&gt;Thursday 0.050301811&lt;BR /&gt;Monday -0.145520643&lt;BR /&gt;Saturday -0.281669589&lt;BR /&gt;Sunday -0.281669589&lt;BR /&gt;Friday -1.360262415&lt;BR /&gt;;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 14:25:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-positive-negative-bar-chart/m-p/727120#M226080</guid>
      <dc:creator>Rodcjones</dc:creator>
      <dc:date>2021-03-17T14:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a positive-negative bar chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-positive-negative-bar-chart/m-p/727122#M226081</link>
      <description>&lt;P&gt;Basic HBAR for the data shown:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=have;
   hbar day /response=value;
run;
   &lt;/PRE&gt;
&lt;P&gt;And possible order control using the categoryorder option.&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=have;
   hbar day /response=value 
            categoryorder=respdesc;
run;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Mar 2021 14:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-positive-negative-bar-chart/m-p/727122#M226081</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-17T14:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a positive-negative bar chart</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-positive-negative-bar-chart/m-p/727125#M226083</link>
      <description>Simple, elegant and perfect solution - thank you!</description>
      <pubDate>Wed, 17 Mar 2021 14:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-positive-negative-bar-chart/m-p/727125#M226083</guid>
      <dc:creator>Rodcjones</dc:creator>
      <dc:date>2021-03-17T14:40:27Z</dc:date>
    </item>
  </channel>
</rss>

