<?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 How to draw a bar line chart? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-bar-line-chart/m-p/339341#M11796</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data as below, from which I want to draw a bar-line chart, volume is the bar and rate is the line, would you please help me?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data test;&lt;BR /&gt;input&lt;BR /&gt;Type $2. Volume 5. Rate 18.;&lt;BR /&gt;cards;&lt;BR /&gt;A -105 0&lt;BR /&gt;B -102 -0.005839013&lt;BR /&gt;C -97 0.039130435&lt;BR /&gt;D -91 -0.002736612&lt;BR /&gt;E -78 0&lt;BR /&gt;F -67 0&lt;BR /&gt;G -58 -0.166469762&lt;BR /&gt;H -55 0.058062447&lt;BR /&gt;I -52 0&lt;BR /&gt;J -34 0.101676241&lt;BR /&gt;K -30 -0.035087719&lt;BR /&gt;L -27 -0.001283148&lt;BR /&gt;M -25 -0.147058824&lt;BR /&gt;N -21 0.001364522&lt;BR /&gt;O -21 -0.019047619&lt;BR /&gt;P -19 -0.033603803&lt;BR /&gt;Q -18 0&lt;BR /&gt;R -12 0&lt;BR /&gt;S -12 0&lt;BR /&gt;T -12 0.338461539&lt;BR /&gt;U -11 0.155289702&lt;BR /&gt;V -10 0&lt;BR /&gt;W -10 -0.255411255&lt;BR /&gt;X -8 0&lt;BR /&gt;Y -7 0&lt;BR /&gt;Z -7 0.02945253&lt;BR /&gt;;run;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2017 18:28:20 GMT</pubDate>
    <dc:creator>zhangda</dc:creator>
    <dc:date>2017-03-08T18:28:20Z</dc:date>
    <item>
      <title>How to draw a bar line chart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-bar-line-chart/m-p/339341#M11796</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data as below, from which I want to draw a bar-line chart, volume is the bar and rate is the line, would you please help me?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data test;&lt;BR /&gt;input&lt;BR /&gt;Type $2. Volume 5. Rate 18.;&lt;BR /&gt;cards;&lt;BR /&gt;A -105 0&lt;BR /&gt;B -102 -0.005839013&lt;BR /&gt;C -97 0.039130435&lt;BR /&gt;D -91 -0.002736612&lt;BR /&gt;E -78 0&lt;BR /&gt;F -67 0&lt;BR /&gt;G -58 -0.166469762&lt;BR /&gt;H -55 0.058062447&lt;BR /&gt;I -52 0&lt;BR /&gt;J -34 0.101676241&lt;BR /&gt;K -30 -0.035087719&lt;BR /&gt;L -27 -0.001283148&lt;BR /&gt;M -25 -0.147058824&lt;BR /&gt;N -21 0.001364522&lt;BR /&gt;O -21 -0.019047619&lt;BR /&gt;P -19 -0.033603803&lt;BR /&gt;Q -18 0&lt;BR /&gt;R -12 0&lt;BR /&gt;S -12 0&lt;BR /&gt;T -12 0.338461539&lt;BR /&gt;U -11 0.155289702&lt;BR /&gt;V -10 0&lt;BR /&gt;W -10 -0.255411255&lt;BR /&gt;X -8 0&lt;BR /&gt;Y -7 0&lt;BR /&gt;Z -7 0.02945253&lt;BR /&gt;;run;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 18:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-bar-line-chart/m-p/339341#M11796</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2017-03-08T18:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a bar line chart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-bar-line-chart/m-p/339352#M11797</link>
      <description>&lt;P&gt;Here is one approach:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=test;
   vbar type / response=volume stat=sum;
   vline type/ response=rate y2axis;
run;&lt;/PRE&gt;
&lt;P&gt;SGPLOT will attempt to overlay each separate plot type. However there are severe restrictions of what may be combined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Y2axis is needed because the range of values you have for rate is so small that it gets buried in the base of the bars.&lt;/P&gt;
&lt;P&gt;Look in the documentation for SGPLOT for axis and other appearance options.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 19:00:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-bar-line-chart/m-p/339352#M11797</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-08T19:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a bar line chart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-bar-line-chart/m-p/339364#M11798</link>
      <description>&lt;P&gt;What version of SAS do you have?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Top 3 hits from Google : SAS Bar Line Chart&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/rnd/datavisualization/yourGraphs/businessQuick/barline/" target="_blank"&gt;http://support.sas.com/rnd/datavisualization/yourGraphs/businessQuick/barline/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/04/02/bar-line-graph/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2012/04/02/bar-line-graph/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n1mp0swy0atvzun1oeqlkrg8d89o.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n1mp0swy0atvzun1oeqlkrg8d89o.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 19:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-bar-line-chart/m-p/339364#M11798</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-08T19:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a bar line chart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-bar-line-chart/m-p/339425#M11800</link>
      <description>&lt;P&gt;Hi Ballard,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you please guide me how to put the bars in a descending &amp;nbsp;order(from the highest to lowest height), &amp;nbsp;I sorted it before sgplot but why the bars&amp;nbsp;still show disorderly? (see the data below). Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;input&lt;BR /&gt;Type $2. Volume 5. Rate 18.;&lt;BR /&gt;cards;&lt;BR /&gt;A -19 0&lt;BR /&gt;B -102 -0.005839013&lt;BR /&gt;C -97 0.039130435&lt;BR /&gt;D -91 -0.002736612&lt;BR /&gt;E -78 0&lt;BR /&gt;F -6 0&lt;BR /&gt;G -58 -0.166469762&lt;BR /&gt;H -55 0.058062447&lt;BR /&gt;I -52 0&lt;BR /&gt;J -34 0.101676241&lt;BR /&gt;K -30 -0.035087719&lt;BR /&gt;L -27 -0.001283148&lt;BR /&gt;M -25 -0.147058824&lt;BR /&gt;N -2 0.001364522&lt;BR /&gt;O -21 -0.019047619&lt;BR /&gt;P -19 -0.033603803&lt;BR /&gt;Q -18 0&lt;BR /&gt;R 12 0&lt;BR /&gt;S -12 0&lt;BR /&gt;T 11 0.338461539&lt;BR /&gt;U -11 0.155289702&lt;BR /&gt;V -10 0&lt;BR /&gt;W -10 -0.255411255&lt;BR /&gt;X -8 0&lt;BR /&gt;Y 24 0&lt;BR /&gt;Z -7 0.02945253&lt;BR /&gt;;run;&lt;/P&gt;&lt;P&gt;proc sort data=test output=test2;by descending volume ;run;&lt;BR /&gt;ods graphics / width=15in height=6.81in;&lt;BR /&gt;proc sgplot data=test2;&lt;BR /&gt;vbar type / response=volume stat=sum;&lt;BR /&gt;vline type/ response=rate y2axis;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 20:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-bar-line-chart/m-p/339425#M11800</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2017-03-08T20:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a bar line chart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-bar-line-chart/m-p/339428#M11801</link>
      <description>&lt;P&gt;VBAR Option -&amp;nbsp;categoryorder=respdesc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vbar type / response=volume stat=sum&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; categoryorder=respdesc;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 20:35:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-bar-line-chart/m-p/339428#M11801</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-08T20:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a bar line chart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-bar-line-chart/m-p/339431#M11802</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 20:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-bar-line-chart/m-p/339431#M11802</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2017-03-08T20:39:28Z</dc:date>
    </item>
  </channel>
</rss>

