<?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: remove borders from sgplot vbar legend markers : 'gcdata'=white in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/remove-borders-from-sgplot-vbar-legend-markers-gcdata-white/m-p/538902#M17854</link>
    <description>&lt;P&gt;That's probably only for 9.4.&lt;/P&gt;
&lt;P&gt;Not working on my system (SAS9.3, EG 7.1, windows7, 64bit)&lt;BR /&gt;&lt;BR /&gt;265 + keylegend / autooutline;&lt;BR /&gt;___________&lt;BR /&gt;22&lt;BR /&gt;202&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ACROSS, BORDER, DOWN, LOCATION, NOBORDER, POSITION, TITLE, TITLEATTRS, VALUEATTRS. &lt;BR /&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Feb 2019 08:48:35 GMT</pubDate>
    <dc:creator>mathias</dc:creator>
    <dc:date>2019-02-27T08:48:35Z</dc:date>
    <item>
      <title>remove borders from sgplot vbar legend markers : 'gcdata'=white</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/remove-borders-from-sgplot-vbar-legend-markers-gcdata-white/m-p/538668#M17841</link>
      <description>&lt;P&gt;I want to remove borders from an sgplot (vbar with group=) both on the bars and in the legend.&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;
&lt;P&gt;in GraphColors template styles, I tried&lt;/P&gt;
&lt;P&gt;'gcdata1'=white&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but it's not applying to the legend ! (the border of the legend marker is black&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried applying the same color as 'gdata1' but that doesn't work either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried to use a transparent color Affffff00 but that's not working either (btw that produces a weird bug that makes all the rest of 'gcdata2', 'gcdata3', 4... unused and 'gcdata' is then used instead for all)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My current solution is to use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'gcdata1' = CXfefefe&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which is ~ok for my needs&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But that's such a strange behavior that I would like to understand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;______________________________&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The plot looks like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=sashelp.class; by sex; run;quit;&lt;BR /&gt;proc sgplot data=sashelp.class;&lt;BR /&gt;&amp;nbsp; vbar Age / group=Sex groupdisplay=cluster;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and I'm viewing it in STP output (default ods, it creates PNG's inside an html page)&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 16:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/remove-borders-from-sgplot-vbar-legend-markers-gcdata-white/m-p/538668#M17841</guid>
      <dc:creator>mathias</dc:creator>
      <dc:date>2019-02-26T16:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: remove borders from sgplot vbar legend markers : 'gcdata'=white</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/remove-borders-from-sgplot-vbar-legend-markers-gcdata-white/m-p/538678#M17842</link>
      <description>&lt;P&gt;Just use the NOOUTLINE option on the VBAR statement -- no style change necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 16:10:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/remove-borders-from-sgplot-vbar-legend-markers-gcdata-white/m-p/538678#M17842</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-02-26T16:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: remove borders from sgplot vbar legend markers : 'gcdata'=white</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/remove-borders-from-sgplot-vbar-legend-markers-gcdata-white/m-p/538686#M17843</link>
      <description>I think I tried that and that doesn't remove the border in the legend. Will try again tomorrow to confirm or not.</description>
      <pubDate>Tue, 26 Feb 2019 16:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/remove-borders-from-sgplot-vbar-legend-markers-gcdata-white/m-p/538686#M17843</guid>
      <dc:creator>mathias</dc:creator>
      <dc:date>2019-02-26T16:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: remove borders from sgplot vbar legend markers : 'gcdata'=white</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/remove-borders-from-sgplot-vbar-legend-markers-gcdata-white/m-p/538713#M17844</link>
      <description>&lt;P&gt;Ah, you are correct! You also have to use the AUTOOUTLINE option on the KEYLEGEND statement. That tells the legend to respond to the outline settings of the plot:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class; by sex; run;quit;
proc sgplot data=sashelp.class;
  vbar Age / group=Sex groupdisplay=cluster nooutline;
  keylegend / autooutline;
  run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That should work for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 17:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/remove-borders-from-sgplot-vbar-legend-markers-gcdata-white/m-p/538713#M17844</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-02-26T17:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: remove borders from sgplot vbar legend markers : 'gcdata'=white</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/remove-borders-from-sgplot-vbar-legend-markers-gcdata-white/m-p/538902#M17854</link>
      <description>&lt;P&gt;That's probably only for 9.4.&lt;/P&gt;
&lt;P&gt;Not working on my system (SAS9.3, EG 7.1, windows7, 64bit)&lt;BR /&gt;&lt;BR /&gt;265 + keylegend / autooutline;&lt;BR /&gt;___________&lt;BR /&gt;22&lt;BR /&gt;202&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ACROSS, BORDER, DOWN, LOCATION, NOBORDER, POSITION, TITLE, TITLEATTRS, VALUEATTRS. &lt;BR /&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 08:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/remove-borders-from-sgplot-vbar-legend-markers-gcdata-white/m-p/538902#M17854</guid>
      <dc:creator>mathias</dc:creator>
      <dc:date>2019-02-27T08:48:35Z</dc:date>
    </item>
  </channel>
</rss>

