<?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: Customize weight of crosshatch lines in STYLE.JOURNAL3 in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Customize-weight-of-crosshatch-lines-in-STYLE-JOURNAL3/m-p/776263#M22188</link>
    <description>&lt;P&gt;Not exactly--what I'm trying to find out is if there is an attribute that reduces the weight of the crosshatch lines. I am using datalabels within a horizontal stacked bar chart, so a fainter crosshatch would be nicer. Perhaps that cannot be done with STYLE-JOURNAL3.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 18:25:47 GMT</pubDate>
    <dc:creator>svh</dc:creator>
    <dc:date>2021-10-25T18:25:47Z</dc:date>
    <item>
      <title>Customize weight of crosshatch lines in STYLE.JOURNAL3</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customize-weight-of-crosshatch-lines-in-STYLE-JOURNAL3/m-p/776197#M22183</link>
      <description>&lt;P&gt;I am trying to create a custom style that is based on &lt;A href="https://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_odsgraph_sect060.htm#statug.odsgraph.fJournal3" target="_self"&gt;JOURNAL3,&lt;/A&gt;&amp;nbsp;but I am unable to reduce the weight of the crosshatch lines. In short, I want to apply crosshatch lines to one response value for a variable that has 6 values. I am using the following code to create the template and set up the attribution map data set to apply the crosshatch lines to the level defined by GRAPHDATA6. However, I do not know which style attribute controls the weight of the crosshatch lines that are part of this style. I have tried using TRANSPARENCY= but this has not made a difference in the output. Which attribute would I use in the line of the PROC TEMPLATE code that defines the style attributes for GRAPHDATA6?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc template; 
    define style styles.BTRFLY; 
    parent = styles.journal3; 
    style GraphData1 from GraphData1 / 
        fillpattern = "solid";
    style GraphData2 from GraphData2 / 
        fillpattern = "solid"; 
    style GraphData3 from GraphData3 / 
        fillpattern = "solid"; 
    style GraphData4 from GraphData4 / 
        fillpattern = "solid"; 
	 style GraphData5 from GraphData5 / 
        fillpattern = "solid"; 
    style GraphData6 from GraphData6 / 
        fillpattern = "X1" ; /*THIS IS THE LEVEL WITH CROSSHATCH LINES*/ 
    end;
/*run; */;

ods listing style=BTRFLY image_dpi=300 gpath="&amp;amp;path.\Figures\";

data attrmap;
    length ID $ 8 Value $ 35 fillstyle $ 10;
    infile datalines delimiter='|';
    input ID Value fillstyle ;
    datalines;
response|Does not exist at school/district|GraphData6
response|Never|GraphData5
response|1-2 times a year|GraphData4
response|3-6 times a year|GraphData3
response|1-2 times each month|GraphData2
response|Every week|GraphData1
    ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 14:03:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customize-weight-of-crosshatch-lines-in-STYLE-JOURNAL3/m-p/776197#M22183</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2021-10-25T14:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Customize weight of crosshatch lines in STYLE.JOURNAL3</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customize-weight-of-crosshatch-lines-in-STYLE-JOURNAL3/m-p/776201#M22185</link>
      <description>&lt;P&gt;Is this what you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
do x=1 to 4;
   do g=1 to 6;
     y=ranuni(123);
     output;
   end;
end;
run;

proc template;
define style styles.btrfly;
parent=styles.journal3;
style graphdata1 from graphdata1 / fillpattern="s";
style graphdata2 from graphdata2 / fillpattern="s";
style graphdata3 from graphdata3 / fillpattern="s";
style graphdata4 from graphdata4 / fillpattern="s";
style graphdata5 from graphdata5 / fillpattern="s";
style graphdata6 from graphdata6 / fillpattern="x1";
end;
run;
ods graphics / attrpriority=none;
ods html style=btrfly;

data attrmap;
retain id "myid";
input value $ fillstyle $;
cards;
1 GraphData1
2 GraphData2
3 GraphData3
4 GraphData4
5 GraphData5
6 GraphData6
;
run;

proc sgplot data=test dattrmap=attrmap;
vbar x / response=y group=g fillpattern attrid=myid groupdisplay=cluster;
run;

ods html close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Oct 2021 14:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customize-weight-of-crosshatch-lines-in-STYLE-JOURNAL3/m-p/776201#M22185</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-10-25T14:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Customize weight of crosshatch lines in STYLE.JOURNAL3</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customize-weight-of-crosshatch-lines-in-STYLE-JOURNAL3/m-p/776207#M22186</link>
      <description>&lt;P&gt;Have a look at the doc here&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p0yjbi9rz0z03tn1arz9ia9tgvic.htm#n0h0evr5wmfxswn12u8qz2jiz00k" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p0yjbi9rz0z03tn1arz9ia9tgvic.htm#n0h0evr5wmfxswn12u8qz2jiz00k&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can choose the L1 to L5 R1 to R5 and X1 to X5&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you would use something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;style GraphData6 from GraphData6 /
      fillpattern = "R2";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally you can look at an existing style definition using the following code. The EXPAND option will also print the parent style definitions.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template; 
source styles.journal3 / expand ; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Oct 2021 14:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customize-weight-of-crosshatch-lines-in-STYLE-JOURNAL3/m-p/776207#M22186</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2021-10-25T14:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Customize weight of crosshatch lines in STYLE.JOURNAL3</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customize-weight-of-crosshatch-lines-in-STYLE-JOURNAL3/m-p/776263#M22188</link>
      <description>&lt;P&gt;Not exactly--what I'm trying to find out is if there is an attribute that reduces the weight of the crosshatch lines. I am using datalabels within a horizontal stacked bar chart, so a fainter crosshatch would be nicer. Perhaps that cannot be done with STYLE-JOURNAL3.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 18:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customize-weight-of-crosshatch-lines-in-STYLE-JOURNAL3/m-p/776263#M22188</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2021-10-25T18:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Customize weight of crosshatch lines in STYLE.JOURNAL3</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customize-weight-of-crosshatch-lines-in-STYLE-JOURNAL3/m-p/776334#M22190</link>
      <description>&lt;P&gt;To control the thickness of the fill pattern lines, you should do as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32"&gt;@BrunoMueller&lt;/a&gt;&amp;nbsp;described. Another option is to change the color from black to a lighter shade of gray. Given your use case, I would probably go towards the color approach.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 00:34:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customize-weight-of-crosshatch-lines-in-STYLE-JOURNAL3/m-p/776334#M22190</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-10-26T00:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Customize weight of crosshatch lines in STYLE.JOURNAL3</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Customize-weight-of-crosshatch-lines-in-STYLE-JOURNAL3/m-p/776644#M22192</link>
      <description>&lt;P&gt;Circling back here to say that I figured out my problem: I needed to assign a light color in the DATACONTRASTCOLORS statement to put a white crosshatch on a gray bar. This way, the segment label is made visibile. Here is the segment of the SGPLOT code that I needed to change. Thank you for your suggestions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;   styleattrs datacolors=( CX00354c CX004c6d  CX6996b3 CXc1e7ff CXbbbbbb CXdddddd   )
               datacontrastcolors=(CXffffff CX004c6d  CX6996b3 CXc1e7ff CXbbbbbb CXdddddd   ); /*The white color in the first position changes the crosshatch*/&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Oct 2021 00:50:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Customize-weight-of-crosshatch-lines-in-STYLE-JOURNAL3/m-p/776644#M22192</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2021-10-27T00:50:41Z</dc:date>
    </item>
  </channel>
</rss>

