<?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 Changing the color of the borders color of the wall using  proc template and proc sgrender in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-color-of-the-borders-color-of-the-wall-using-proc/m-p/588864#M18877</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below adds colors to the borders. In comments, we have the code to remove the borders.&lt;/P&gt;&lt;P&gt;The blue border surrounds the whole graph. What should be updated to have the border only up to the axis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that I'm not looking for other methods like "proc template; define style;... class graphwalls..." but really the solution with "proc template; define statgraph....".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
    define statgraph xxbarchart;
    *begingraph / border=off;
    begingraph / border=on borderattrs=(color=red);
        *layout overlay / walldisplay=(fill);
        layout overlay / border=on borderattrs=(color=blue) walldisplay=(outline);
            barchart x=age / group=sex orient=vertical name='xx'; 
         
            *discretelegend 'xx'/ border=off;
            discretelegend 'xx'/ border=on borderattrs=(color=green);
        endlayout;
    endgraph;
    end;
run;

ods graphics / width=15cm height=10cm;

proc sgrender data=sashelp.class template=xxbarchart;
run;

ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="support_border.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32479iCB3FBAB6C8DE0315/image-size/large?v=v2&amp;amp;px=999" role="button" title="support_border.JPG" alt="support_border.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When borders are removed:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="support_noborder.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32480iF6C252DD1B54CF67/image-size/large?v=v2&amp;amp;px=999" role="button" title="support_noborder.JPG" alt="support_noborder.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of expected border limits created using another syntax:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="support_expected.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32481i958735876955C0FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="support_expected.JPG" alt="support_expected.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Sep 2019 18:03:39 GMT</pubDate>
    <dc:creator>xxformat_com</dc:creator>
    <dc:date>2019-09-15T18:03:39Z</dc:date>
    <item>
      <title>Changing the color of the borders color of the wall using  proc template and proc sgrender</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-color-of-the-borders-color-of-the-wall-using-proc/m-p/588864#M18877</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below adds colors to the borders. In comments, we have the code to remove the borders.&lt;/P&gt;&lt;P&gt;The blue border surrounds the whole graph. What should be updated to have the border only up to the axis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that I'm not looking for other methods like "proc template; define style;... class graphwalls..." but really the solution with "proc template; define statgraph....".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
    define statgraph xxbarchart;
    *begingraph / border=off;
    begingraph / border=on borderattrs=(color=red);
        *layout overlay / walldisplay=(fill);
        layout overlay / border=on borderattrs=(color=blue) walldisplay=(outline);
            barchart x=age / group=sex orient=vertical name='xx'; 
         
            *discretelegend 'xx'/ border=off;
            discretelegend 'xx'/ border=on borderattrs=(color=green);
        endlayout;
    endgraph;
    end;
run;

ods graphics / width=15cm height=10cm;

proc sgrender data=sashelp.class template=xxbarchart;
run;

ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="support_border.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32479iCB3FBAB6C8DE0315/image-size/large?v=v2&amp;amp;px=999" role="button" title="support_border.JPG" alt="support_border.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When borders are removed:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="support_noborder.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32480iF6C252DD1B54CF67/image-size/large?v=v2&amp;amp;px=999" role="button" title="support_noborder.JPG" alt="support_noborder.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of expected border limits created using another syntax:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="support_expected.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32481i958735876955C0FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="support_expected.JPG" alt="support_expected.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 18:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-color-of-the-borders-color-of-the-wall-using-proc/m-p/588864#M18877</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2019-09-15T18:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the color of the borders color of the wall using  proc template and proc sgrender</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-the-color-of-the-borders-color-of-the-wall-using-proc/m-p/588911#M18878</link>
      <description>&lt;P&gt;Not every aspect of the Graph Style attributes can be modified using the GTL syntax.&amp;nbsp; As far as I can recall, wall outline attributes and axis line attributes cannot be changed using GTL syntax.&amp;nbsp; When using only x-y axes, the top and right axis lines are really the wall outline.&amp;nbsp; One way to change the apparent wall outline or axis line using GTL syntax, you can turn off these display using the syntax options, and then use a DRAWRECTANGLE statement to draw a full rectangle around the wall in WALLPERCENT drawspace.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the code below, if we use W=100 (%), then we get a rectangle width spanning only the data extent from first bar midpoint to last bar midpoint.&amp;nbsp; So, given we have 6 bars (or, 5 bar spacing), we need to use a W=120% to span the entire space.&amp;nbsp; This still leaves a few pixels gap, so I used 122%.&amp;nbsp; You could also use 102% for height (for upper gap), but then use y=51%.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
    define statgraph xxbarchart;
    *begingraph / border=off;
    begingraph / border=on borderattrs=(color=red);
        *layout overlay / walldisplay=(fill);
        layout overlay / border=on borderattrs=(color=blue) walldisplay=none
                         xaxisopts=(display=(ticks tickvalues))
                         yaxisopts=(display=(ticks tickvalues));
            barchart x=age / group=sex orient=vertical name='xx' displaybaseline=auto;
            drawrectangle x=50 y=51 / width=122 height=102 drawspace=datapercent; 
         
            *discretelegend 'xx'/ border=off;
            discretelegend 'xx'/ border=on borderattrs=(color=green);
        endlayout;
    endgraph;
    end;
run;

ods graphics / width=15cm height=10cm;

proc sgrender data=sashelp.class template=xxbarchart;
run;

ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wall_Outline.png" style="width: 567px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32487iD960C8F694B4025E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Wall_Outline.png" alt="Wall_Outline.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>Sun, 15 Sep 2019 23:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-the-color-of-the-borders-color-of-the-wall-using-proc/m-p/588911#M18878</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2019-09-15T23:50:59Z</dc:date>
    </item>
  </channel>
</rss>

