<?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 GTL barchart question in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/GTL-barchart-question/m-p/106079#M3924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I would like to create a graph as follows using barchart tags instead of needleplot.&lt;/P&gt;&lt;P&gt;Is there anyway to keep the reference lines as they are? I'm using SAS 9.2M3.&lt;/P&gt;&lt;P&gt;Thank you in advance for any help!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="needleplot_bars.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2643_needleplot_bars.png" width="450" /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11406i1F406E30785EDDE0/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="needleplot_bars.png" title="needleplot_bars.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2012 07:29:37 GMT</pubDate>
    <dc:creator>paolo_santin</dc:creator>
    <dc:date>2012-10-25T07:29:37Z</dc:date>
    <item>
      <title>GTL barchart question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GTL-barchart-question/m-p/106079#M3924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I would like to create a graph as follows using barchart tags instead of needleplot.&lt;/P&gt;&lt;P&gt;Is there anyway to keep the reference lines as they are? I'm using SAS 9.2M3.&lt;/P&gt;&lt;P&gt;Thank you in advance for any help!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="needleplot_bars.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2643_needleplot_bars.png" width="450" /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11406i1F406E30785EDDE0/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="needleplot_bars.png" title="needleplot_bars.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 07:29:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GTL-barchart-question/m-p/106079#M3924</guid>
      <dc:creator>paolo_santin</dc:creator>
      <dc:date>2012-10-25T07:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: GTL barchart question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GTL-barchart-question/m-p/106080#M3925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note some items for this graph:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This should work with SAS 9.2(TS2M3).&lt;/LI&gt;&lt;LI&gt;The reference lines need to have the formatted values.&amp;nbsp; hence the eval(put).&amp;nbsp; This is due to a bug / lack of feature where if you are using user defined formats, the reference line with constant value (not from column) does not have a format.&lt;/LI&gt;&lt;LI&gt;You can use the same attributes for the reference lines as the grid lines to make them all look consistent.&lt;/LI&gt;&lt;LI&gt;You cannot do this with SGPLOT as you cannot overlay VBAR statements with different category variables.&amp;nbsp; But with SAS 9.3, you can do this using the VBARPARM statements.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="2644" alt="MultiBar_MidpointRef.png" class="jive-image-thumbnail jive-image jiveImage" src="https://communities.sas.com/legacyfs/online/2644_MultiBar_MidpointRef.png" width="450" /&gt;&lt;BR /&gt;proc format;&lt;BR /&gt; value dateno&lt;BR /&gt; 0="Serie0"&lt;BR /&gt; 1="Serie1"&lt;BR /&gt; 2="Serie2"&lt;BR /&gt; 3="Serie3"&lt;BR /&gt; 4="JAK"&lt;BR /&gt; 5="ICA"&lt;BR /&gt; 6="IKANO"&lt;BR /&gt; other=" "&lt;BR /&gt; ;&lt;/P&gt;&lt;P&gt;/* Create sample data */&lt;BR /&gt;data BarLine;&lt;BR /&gt;format date_0 date_1 date_2 date_3 dateno.;&lt;BR /&gt;date_0=0; value_0=37500;&lt;BR /&gt;date_05=0.5;&lt;BR /&gt;date_1=1; value_1=35000;&lt;BR /&gt;date_2=2; value_2=30000;&lt;BR /&gt;date_3=3; value_3=25000;&lt;BR /&gt;date_4=4; value_4=23000;&lt;BR /&gt;date_5=5; value_5=20000;&lt;BR /&gt;date_6=6; value_6=17500;&lt;BR /&gt;date_7=7; value_7=15500;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title;&lt;BR /&gt;footnote;&lt;BR /&gt;proc template;&lt;BR /&gt; define statgraph Bars;&lt;BR /&gt;&amp;nbsp; begingraph;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; layout overlay / cycleattrs=true &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yaxisopts=(griddisplay=on display=(tickvalues ticks))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xaxisopts=(display=(tickvalues));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; barchart x=DATE_0 y=VALUE_0 / fillattrs=(color=CXA41D22) barwidth=0.4 name="item_0" legendlabel="Serie0";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; barchart x=DATE_1 y=VALUE_1 / fillattrs=(color=CX0076BD) barwidth=0.4 name="item_1" legendlabel="Serie1";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; barchart x=DATE_2 y=VALUE_2 / fillattrs=(color=CXEEAF00) barwidth=0.4 name="item_2" legendlabel="Serie2";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; barchart x=DATE_3 y=VALUE_3 / fillattrs=(color=CXBCBEC0) barwidth=0.4 name="item_3" legendlabel="Serie3";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; referenceline x=eval(put(0, dateno.)) / lineattrs=graphgridlines discreteoffset=0.5;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; referenceline x=eval(put(1, dateno.)) / lineattrs=graphgridlines discreteoffset=0.5;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; referenceline x=eval(put(2, dateno.)) / lineattrs=graphgridlines discreteoffset=0.5;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; discretelegend 'item_0' 'item_1' 'item_2' 'item_3' /&amp;nbsp; border=false;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; endlayout;&lt;BR /&gt;&amp;nbsp; endgraph;&lt;BR /&gt; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods html close;&lt;BR /&gt;ods graphics / reset width=5in height=3in imagename='MultiBar_MidpointRef';&lt;BR /&gt;proc sgrender data=barline template=Bars ;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 13:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GTL-barchart-question/m-p/106080#M3925</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2012-10-25T13:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: GTL barchart question</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GTL-barchart-question/m-p/106081#M3926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 08:47:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GTL-barchart-question/m-p/106081#M3926</guid>
      <dc:creator>paolo_santin</dc:creator>
      <dc:date>2012-10-26T08:47:30Z</dc:date>
    </item>
  </channel>
</rss>

