<?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: Add gridlines on xaxistable in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Add-gridlines-on-xaxistable/m-p/501842#M17122</link>
    <description>&lt;P&gt;hi sorry for the confusion, what I mean is to add grid lines on the table highlighted below and not on the chart itself.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23804iA0C438CF03574113/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the reply anyway.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Oct 2018 11:32:04 GMT</pubDate>
    <dc:creator>albertsamaniego</dc:creator>
    <dc:date>2018-10-05T11:32:04Z</dc:date>
    <item>
      <title>Add gridlines on xaxistable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Add-gridlines-on-xaxistable/m-p/501732#M17119</link>
      <description>&lt;P&gt;Hi is it possible to add gridlines on the xaxistable on the proc sgplot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here's my sample code. Note that I only created a dummy data named sample data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*create sample data*/&lt;BR /&gt;data sample;
brand = "Brand1";count = 10;Month = 1;output;
brand = "Brand1";count = 22;Month = 2;output;
brand = "Brand1";count = 12;Month = 3;output;
brand = "Brand2";count = 11;Month = 1;output;
brand = "Brand2";count = 31;Month = 2;output;
brand = "Brand2";count = 2;Month = 3;output;
brand = "Brand3";count = 21;Month = 1;output;
brand = "Brand3";count = 41;Month = 2;output;
brand = "Brand3";count = 11;Month = 3;output;
run;

/*plot graph*/
proc sgplot data=sample;&lt;BR /&gt; vbar brand /response=count group=Month groupdisplay=CLUSTER;&lt;BR /&gt; xaxistable count /colorgroup=Month location=inside nostatlabel valueattrs=(size=10 weight=normal) separator;&lt;BR /&gt; xaxis display=(nolabel noline noticks);&lt;BR /&gt; yaxis display=(noline noticks) grid;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The resulting graph would be like this but I'm required to add gridlines on the table underneath the bar graph.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23792i4DA7C63AD27106AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 02:44:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Add-gridlines-on-xaxistable/m-p/501732#M17119</guid>
      <dc:creator>albertsamaniego</dc:creator>
      <dc:date>2018-10-05T02:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add gridlines on xaxistable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Add-gridlines-on-xaxistable/m-p/501822#M17121</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sample;
brand = "Brand1";count = 10;Month = 1;output;
brand = "Brand1";count = 22;Month = 2;output;
brand = "Brand1";count = 12;Month = 3;output;
brand = "Brand2";count = 11;Month = 1;output;
brand = "Brand2";count = 31;Month = 2;output;
brand = "Brand2";count = 2;Month = 3;output;
brand = "Brand3";count = 21;Month = 1;output;
brand = "Brand3";count = 41;Month = 2;output;
brand = "Brand3";count = 11;Month = 3;output;
run;

/*plot graph*/
proc sgplot data=sample; 
vbar brand /response=count group=Month groupdisplay=CLUSTER; 
xaxistable count /colorgroup=Month location=inside nostatlabel 
valueattrs=(size=10 weight=normal) separator; 
xaxis display=(nolabel noline noticks); yaxis display=(noline noticks) grid;
refline "Brand1" "Brand2" "Brand3"/axis=x discreteoffset=0.3;
refline "Brand1" "Brand2" "Brand3"/axis=x discreteoffset=-0.3;
refline "Brand1" "Brand2" "Brand3"/axis=x;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Oct 2018 10:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Add-gridlines-on-xaxistable/m-p/501822#M17121</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-10-05T10:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Add gridlines on xaxistable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Add-gridlines-on-xaxistable/m-p/501842#M17122</link>
      <description>&lt;P&gt;hi sorry for the confusion, what I mean is to add grid lines on the table highlighted below and not on the chart itself.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23804iA0C438CF03574113/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the reply anyway.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 11:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Add-gridlines-on-xaxistable/m-p/501842#M17122</guid>
      <dc:creator>albertsamaniego</dc:creator>
      <dc:date>2018-10-05T11:32:04Z</dc:date>
    </item>
  </channel>
</rss>

