<?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: BAR with specified width and full height in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/BAR-with-specified-width-and-full-height/m-p/974320#M25643</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Problem is t&lt;/SPAN&gt;&lt;SPAN&gt;hat red lines in FillPattern &lt;STRONG&gt;doesn't match for different Subjects&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I don't understand your question ,can you explain it more details ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And I am running your code and get the red line rectangle.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;options validvarname=any;
proc format; 
value _trt  /*组别的Format*/
1='4 mg/kg Combination'
2='6 mg/kg Combination'
3='10 mg/kg Combination'
;
picture _time  /*治疗开始时间 治疗结束时间的Format*/
0='Baseline'(noedit)
other='009'(prefix='Week ')
;
run;
data swimmer;
*治疗开始时间 治疗结束时间 以月,周,天 等为单位 ;
  input Subjid 组别 治疗开始时间 治疗结束时间 CR PR SD PD 继续时间  start end ;  /*继续时间 是  治疗结束时间*/
  format 组别 _trt. 治疗开始时间 治疗结束时间 _time. ;
  继续时间=继续时间+0.5;
  datalines;
1   1  0  22    6  13 3 15  .   5 10
2   2  0  17   10  17 7 .   17  5 10
3   3  0  14   2   3  . 12  .   5 10
4   2  0  13    7  11 1 10  .   5 10
5   1  0  12    3   4  . 8  12  5 10
6   2  0  12    2   7  3 .  12  5 10
7   3  0  11    4  11 14 8  11  5 10
8   1  0   9    1   9  . 12  .  5 10  
9   1  0   8   6    . 4  10 8   5 10
10  2  0   4    1   .  2  3 4   5 10
;
run;

%sganno


title 'xxxxxxxxxxxxxxx';
proc sgplot data= swimmer;
styleattrs datacolors=(lightbrown lightgreen lightblue);
symbolchar name=arrow char='2192'x/scale=2;
  highlow y=subjid low=治疗开始时间 high=治疗结束时间 /type=bar group=组别 fill nooutline
          lineattrs=(color=black)  nomissinggroup ;

  scatter y=subjid x=CR  / markerattrs=(symbol=circlefilled size=10 color=yellow) legendlabel='CR' ;
  scatter y=subjid x=PR  / markerattrs=(symbol=circlefilled size=10 color=red) legendlabel='PR' ;
  scatter y=subjid x=SD  / markerattrs=(symbol=circlefilled size=10 color=blue) legendlabel='SD' ;
  scatter y=subjid x=PD / markerattrs=(symbol=circlefilled size=10 color=gray) legendlabel='PD' ;
  scatter y=subjid x=继续时间 / markerattrs=(symbol=arrow size=14 color=black) legendlabel='On Treatment' ;

HighLow Y = subjid High = end  Low = start / 
Type = BAR BARWIDTH = 1  nooutline
FillPattern
FillPatternAttrs=(Pattern=L1 Color=LightRed) 
FillAttrs = (Color = LightGreen Transparency=0.6) ;

  xaxis label=' '  valueshint;
  yaxis display=(noticks novalues noline) reverse label='Subjects Received Study Drug';
  keylegend  /title=' ' noborder location=inside position=bottomright across=1;
  run;



&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1757151274920.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109671i65BFEC4C4C78EEB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1757151274920.png" alt="Ksharp_0-1757151274920.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Sep 2025 09:34:43 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2025-09-06T09:34:43Z</dc:date>
    <item>
      <title>BAR with specified width and full height</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/BAR-with-specified-width-and-full-height/m-p/974285#M25642</link>
      <description>&lt;P&gt;I try to create Vertical BAR (Red) width specified width (Study Day)(YAxis) for all Subjects(Yaxis) Swimmer Plot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimurShangareev_0-1757095621053.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109667i5C70BBEC1292A2E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimurShangareev_0-1757095621053.png" alt="TimurShangareev_0-1757095621053.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;HighLowPlot Y = Subject High = REFENDY  Low = REFSTDY / 
Type = BAR BARWIDTH = 1 HighCap = NONE Primary = True 
Display=(FillPattern)
FillPatternAttrs=(Pattern=L1 Color=LightRed) 
FillAttrs = (Color = LightGreen Transparency=0.6) 
LegendLabel="Washout Window" Name="washout" ;&lt;/PRE&gt;&lt;P&gt;Problem is that red lines in FillPattern doesn't match for different Subjects.&lt;/P&gt;&lt;P&gt;Someone know another method, how to draw such red vertical rectangle?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 18:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/BAR-with-specified-width-and-full-height/m-p/974285#M25642</guid>
      <dc:creator>TimurShangareev</dc:creator>
      <dc:date>2025-09-05T18:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAR with specified width and full height</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/BAR-with-specified-width-and-full-height/m-p/974320#M25643</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Problem is t&lt;/SPAN&gt;&lt;SPAN&gt;hat red lines in FillPattern &lt;STRONG&gt;doesn't match for different Subjects&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I don't understand your question ,can you explain it more details ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And I am running your code and get the red line rectangle.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;options validvarname=any;
proc format; 
value _trt  /*组别的Format*/
1='4 mg/kg Combination'
2='6 mg/kg Combination'
3='10 mg/kg Combination'
;
picture _time  /*治疗开始时间 治疗结束时间的Format*/
0='Baseline'(noedit)
other='009'(prefix='Week ')
;
run;
data swimmer;
*治疗开始时间 治疗结束时间 以月,周,天 等为单位 ;
  input Subjid 组别 治疗开始时间 治疗结束时间 CR PR SD PD 继续时间  start end ;  /*继续时间 是  治疗结束时间*/
  format 组别 _trt. 治疗开始时间 治疗结束时间 _time. ;
  继续时间=继续时间+0.5;
  datalines;
1   1  0  22    6  13 3 15  .   5 10
2   2  0  17   10  17 7 .   17  5 10
3   3  0  14   2   3  . 12  .   5 10
4   2  0  13    7  11 1 10  .   5 10
5   1  0  12    3   4  . 8  12  5 10
6   2  0  12    2   7  3 .  12  5 10
7   3  0  11    4  11 14 8  11  5 10
8   1  0   9    1   9  . 12  .  5 10  
9   1  0   8   6    . 4  10 8   5 10
10  2  0   4    1   .  2  3 4   5 10
;
run;

%sganno


title 'xxxxxxxxxxxxxxx';
proc sgplot data= swimmer;
styleattrs datacolors=(lightbrown lightgreen lightblue);
symbolchar name=arrow char='2192'x/scale=2;
  highlow y=subjid low=治疗开始时间 high=治疗结束时间 /type=bar group=组别 fill nooutline
          lineattrs=(color=black)  nomissinggroup ;

  scatter y=subjid x=CR  / markerattrs=(symbol=circlefilled size=10 color=yellow) legendlabel='CR' ;
  scatter y=subjid x=PR  / markerattrs=(symbol=circlefilled size=10 color=red) legendlabel='PR' ;
  scatter y=subjid x=SD  / markerattrs=(symbol=circlefilled size=10 color=blue) legendlabel='SD' ;
  scatter y=subjid x=PD / markerattrs=(symbol=circlefilled size=10 color=gray) legendlabel='PD' ;
  scatter y=subjid x=继续时间 / markerattrs=(symbol=arrow size=14 color=black) legendlabel='On Treatment' ;

HighLow Y = subjid High = end  Low = start / 
Type = BAR BARWIDTH = 1  nooutline
FillPattern
FillPatternAttrs=(Pattern=L1 Color=LightRed) 
FillAttrs = (Color = LightGreen Transparency=0.6) ;

  xaxis label=' '  valueshint;
  yaxis display=(noticks novalues noline) reverse label='Subjects Received Study Drug';
  keylegend  /title=' ' noborder location=inside position=bottomright across=1;
  run;



&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1757151274920.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109671i65BFEC4C4C78EEB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1757151274920.png" alt="Ksharp_0-1757151274920.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2025 09:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/BAR-with-specified-width-and-full-height/m-p/974320#M25643</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-09-06T09:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: BAR with specified width and full height</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/BAR-with-specified-width-and-full-height/m-p/974322#M25644</link>
      <description>&lt;P&gt;For best results when asking about specific output you should:&lt;/P&gt;
&lt;P&gt;1) include some example data in the form of a working data step that behaves like your actual data&lt;/P&gt;
&lt;P&gt;2) provide ALL the graphics procedure code as some options may not work with options invoked by statements not shown&lt;/P&gt;
&lt;P&gt;and 3) include a very clear description of what you are expecting to create for the given example data.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2025 12:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/BAR-with-specified-width-and-full-height/m-p/974322#M25644</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-09-06T12:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAR with specified width and full height</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/BAR-with-specified-width-and-full-height/m-p/974325#M25645</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimurShangareev_0-1757163071579.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109672iF4E63760582462FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimurShangareev_0-1757163071579.png" alt="TimurShangareev_0-1757163071579.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I mean this joints.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2025 13:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/BAR-with-specified-width-and-full-height/m-p/974325#M25645</guid>
      <dc:creator>TimurShangareev</dc:creator>
      <dc:date>2025-09-06T13:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: BAR with specified width and full height</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/BAR-with-specified-width-and-full-height/m-p/974326#M25646</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/409409"&gt;@TimurShangareev&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimurShangareev_0-1757163071579.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109672iF4E63760582462FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimurShangareev_0-1757163071579.png" alt="TimurShangareev_0-1757163071579.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I mean this joints.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Looks like you really need to include your entire code because that appears as if you are creating a separate rectangle for each subject and not a block over all the subjects that appears to be more the expected case with multiples subjects all having the same overlay.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2025 13:30:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/BAR-with-specified-width-and-full-height/m-p/974326#M25646</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-09-06T13:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAR with specified width and full height</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/BAR-with-specified-width-and-full-height/m-p/974338#M25647</link>
      <description>&lt;P&gt;OK. You want this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=any;
proc format; 
value _trt  /*组别的Format*/
1='4 mg/kg Combination'
2='6 mg/kg Combination'
3='10 mg/kg Combination'
;
picture _time  /*治疗开始时间 治疗结束时间的Format*/
0='Baseline'(noedit)
other='009'(prefix='Week ')
;
run;
data swimmer;
*治疗开始时间 治疗结束时间 以月,周,天 等为单位 ;
infile datalines truncover;
  input Subjid 组别 治疗开始时间 治疗结束时间 CR PR SD PD 继续时间  start end ;  /*继续时间 是  治疗结束时间*/
  format 组别 _trt. 治疗开始时间 治疗结束时间 _time. ;
  继续时间=继续时间+0.5;
  datalines;
0   1  .  .     .   . . .   .   5 10
1   1  0  22    6  13 3 15  .   5 10
2   2  0  17   10  17 7 .   17  5 10
3   3  0  14   2   3  . 12  .   5 10
4   2  0  13    7  11 1 10  .   5 10
5   1  0  12    3   4  . 8  12  5 10
6   2  0  12    2   7  3 .  12  5 10
7   3  0  11    4  11 14 8  11  5 10
8   1  0   9    1   9  . 12  .  5 10  
9   1  0   8   6    . 4  10 8   5 10
10  2  0   4    1   .  2  3 4   5 10
11   1  .  .     .   . . .   .   5 10
;
run;

/*%sganno*/


title 'xxxxxxxxxxxxxxx';
proc sgplot data= swimmer;
styleattrs datacolors=(lightbrown lightgreen lightblue);
symbolchar name=arrow char='2192'x/scale=2;
  highlow y=subjid low=治疗开始时间 high=治疗结束时间 /type=bar group=组别 fill nooutline
          lineattrs=(color=black)  nomissinggroup ;

  scatter y=subjid x=CR  / markerattrs=(symbol=circlefilled size=10 color=yellow) legendlabel='CR' ;
  scatter y=subjid x=PR  / markerattrs=(symbol=circlefilled size=10 color=red) legendlabel='PR' ;
  scatter y=subjid x=SD  / markerattrs=(symbol=circlefilled size=10 color=blue) legendlabel='SD' ;
  scatter y=subjid x=PD / markerattrs=(symbol=circlefilled size=10 color=gray) legendlabel='PD' ;
  scatter y=subjid x=继续时间 / markerattrs=(symbol=arrow size=14 color=black) legendlabel='On Treatment' ;

band y=subjid lower=start upper=end/fillpattern nofill FILLPATTERNATTRS=(color=black) nooutline;

  xaxis label=' '  valueshint;
  yaxis display=(noticks novalues noline) offsetmin=0 offsetmax=0 reverse label='Subjects Received Study Drug';
  keylegend  /title=' ' noborder location=inside position=bottomright across=1 exclude=('Subjid');
  run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1757244062262.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109674iD81AD91976BAB8E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1757244062262.png" alt="Ksharp_0-1757244062262.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Sep 2025 11:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/BAR-with-specified-width-and-full-height/m-p/974338#M25647</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-09-07T11:21:08Z</dc:date>
    </item>
  </channel>
</rss>

