<?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: Black and white fill patterns for bar graphs in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Black-and-white-fill-patterns-for-bar-graphs/m-p/917022#M24388</link>
    <description>&lt;P&gt;For groups, you might want to use the GROUPDISPLAY=CLUSTER option (unless you want a stacked bar chart):&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics /attrpriority=none; 
proc sgplot data=sashelp.cars(where=(type^='Hybrid'));
  vbar type /  fillpattern nofill 
               fillpatternattrs=(color=black) groupdisplay=cluster
               group=origin outlineattrs=(color=black); 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 20 Feb 2024 18:20:08 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2024-02-20T18:20:08Z</dc:date>
    <item>
      <title>Black and white fill patterns for bar graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Black-and-white-fill-patterns-for-bar-graphs/m-p/916956#M24384</link>
      <description>&lt;P&gt;I have googled a&amp;nbsp; lot for more than 2 hours but I could not find a solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Problem: I want to use patterns in graphs, which I am able to do perfectly by using fillpattern keyword in vbar statement of proc sgplot. To this level all fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I want to continue using the patterns but do not want colors. I want to make it black and white. I am not able to understand how to do it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 13:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Black-and-white-fill-patterns-for-bar-graphs/m-p/916956#M24384</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2024-02-20T13:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Black and white fill patterns for bar graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Black-and-white-fill-patterns-for-bar-graphs/m-p/916968#M24385</link>
      <description>&lt;P&gt;Please post the PROC SGPLOT statements that you are currently using.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 13:14:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Black-and-white-fill-patterns-for-bar-graphs/m-p/916968#M24385</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-02-20T13:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Black and white fill patterns for bar graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Black-and-white-fill-patterns-for-bar-graphs/m-p/917020#M24387</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to have empty bars with black lines for the patterns, you can add the NOFILL and FILLPATTERNATTRS=(COLOR=BLACK) options on your VBAR statement in PROC SGPLOT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are creating grouped bars using the GROUP= option on the VBAR statement, you will also need to include the OUTLINEATTRS=(COLOR=BLACK) option to outline the bars in black.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is sample code to demonstrate this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marcia&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
  vbar name /  fillpattern nofill 
               fillpatternattrs=(color=black);
run;
/* Grouped bars */
ods graphics /attrpriority=none; 
proc sgplot data=sashelp.class;
  vbar name /  fillpattern nofill 
               fillpatternattrs=(color=black)
               group=sex outlineattrs=(color=black); 
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Feb 2024 18:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Black-and-white-fill-patterns-for-bar-graphs/m-p/917020#M24387</guid>
      <dc:creator>MarciaS</dc:creator>
      <dc:date>2024-02-20T18:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Black and white fill patterns for bar graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Black-and-white-fill-patterns-for-bar-graphs/m-p/917022#M24388</link>
      <description>&lt;P&gt;For groups, you might want to use the GROUPDISPLAY=CLUSTER option (unless you want a stacked bar chart):&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics /attrpriority=none; 
proc sgplot data=sashelp.cars(where=(type^='Hybrid'));
  vbar type /  fillpattern nofill 
               fillpatternattrs=(color=black) groupdisplay=cluster
               group=origin outlineattrs=(color=black); 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Feb 2024 18:20:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Black-and-white-fill-patterns-for-bar-graphs/m-p/917022#M24388</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-02-20T18:20:08Z</dc:date>
    </item>
  </channel>
</rss>

