<?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: Help with Barchart and Blockplot. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8946#M79</link>
    <description>I am still looking, but one reason is that each cell with its own axis will take up too much space.  So, add the ColumnAxes - EndColumnAxes block to get a single common external axis.&lt;BR /&gt;
&lt;BR /&gt;
Still, I had to add Layout Overlay around each BlockPlot.  I don't know why, but at least this works.  See attached code and graph.  Let me know if this is what you expect.  I had to un-macrofy your code to see what the errors were.</description>
    <pubDate>Tue, 07 Jun 2011 20:54:05 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2011-06-07T20:54:05Z</dc:date>
    <item>
      <title>Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8942#M75</link>
      <description>I tried to modify a plot macro which was used for Stepplot and replaced Stepplot with Barchart. The bar chart are shown OK but the bottom 3 blockplots disappeared. I tried back and forth several time and still cannot figure out what is wrong. &lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot.&lt;BR /&gt;
Yeming &lt;BR /&gt;
&lt;BR /&gt;
Here is the data and code:&lt;BR /&gt;
&lt;BR /&gt;
data freqout;&lt;BR /&gt;
input  window $10. order grptot1 grptot2 grptot3 grppct1 grppct2 grppct3;&lt;BR /&gt;
datalines;&lt;BR /&gt;
BASELINE      1   198        205        182       97.980     97.561     96.154&lt;BR /&gt;
WEEK 6        2     5         14         12      100.000    100.000     83.333&lt;BR /&gt;
WEEK 12       3   179        179        155       97.207     95.531     96.129&lt;BR /&gt;
WEEK 18       4     6          7          3      100.000    100.000     66.667&lt;BR /&gt;
WEEK 26       5    76         73         64       96.053     94.521    100.000&lt;BR /&gt;
END POINT     6   186        190        166       96.237     96.316     98.193&lt;BR /&gt;
run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%let program=test01;&lt;BR /&gt;
%let analset=Intent-to-Treat Analysis Set;&lt;BR /&gt;
%let test01=Bar Plot of Proportion of Subjects with HbA1c &amp;lt; 7% over Time;&lt;BR /&gt;
&lt;BR /&gt;
%macro BarPlot(inds=, title1=, title2=, title3=, ylabel=);&lt;BR /&gt;
&lt;BR /&gt;
  proc template;&lt;BR /&gt;
    define statgraph Gtl_Bars;&lt;BR /&gt;
    dynamic win;&lt;BR /&gt;
    mvar locate sysdate;&lt;BR /&gt;
&lt;BR /&gt;
    begingraph;&lt;BR /&gt;
    &lt;BR /&gt;
      entrytitle textattrs=(weight=bold size=11 family="Times New Roman") "&amp;amp;title1";&lt;BR /&gt;
      entrytitle textattrs=(weight=normal size=9 family="Times New Roman") "&amp;amp;title2";;&lt;BR /&gt;
      entrytitle "&amp;amp;title3";;&lt;BR /&gt;
&lt;BR /&gt;
      entryfootnote textattrs=(weight=normal size=8 family="Times New Roman") halign=left "Created on " SYSDATE;&lt;BR /&gt;
&lt;BR /&gt;
      layout lattice / rows=5 columndatarange=union rowweights=(0.84 .04 .04 .04 .04);&lt;BR /&gt;
&lt;BR /&gt;
        layout overlay / cycleattrs=true ;&lt;BR /&gt;
&lt;BR /&gt;
/* Stepplot is OK */&lt;BR /&gt;
&lt;BR /&gt;
/*&lt;BR /&gt;
          stepplot x=order y=grppct1 /  name='grp1';&lt;BR /&gt;
          stepplot x=order y=grppct2 /  name='grp2';&lt;BR /&gt;
          stepplot x=order y=grppct3 /  name='grp3';&lt;BR /&gt;
*/          &lt;BR /&gt;
/* Barchart is not OK, bottom 3 blockplots disappeared */&lt;BR /&gt;
&lt;BR /&gt;
          barchart x=order y=grppct1 / name='grp1';&lt;BR /&gt;
          barchart x=order y=grppct2 /  name='grp2';&lt;BR /&gt;
          barchart x=order y=grppct3 /  name='grp3';&lt;BR /&gt;
&lt;BR /&gt;
        endlayout;&lt;BR /&gt;
 &lt;BR /&gt;
        blockplot x=order block=grptot1 / display=(values label) &lt;BR /&gt;
            valuehalign=right &lt;BR /&gt;
            repeatedvalues=true &lt;BR /&gt;
            valueattrs=(color=black style=italic size=9 family="Times New Roman")             &lt;BR /&gt;
            label='Dummy A'&lt;BR /&gt;
            labelattrs=(color=black style=italic size=9 family="Times New Roman");&lt;BR /&gt;
        blockplot x=order block=grptot2 / display=(values label)&lt;BR /&gt;
            valuehalign=right &lt;BR /&gt;
            repeatedvalues=true &lt;BR /&gt;
            valueattrs=(color=black style=italic size=9 family="Times New Roman") &lt;BR /&gt;
            label='Dummy B'&lt;BR /&gt;
            labelattrs=(color=black style=italic size=9 family="Times New Roman");&lt;BR /&gt;
        blockplot x=order block=grptot3 / display=(values label) &lt;BR /&gt;
            valuehalign=right&lt;BR /&gt;
            repeatedvalues=true &lt;BR /&gt;
            valueattrs=(color=black style=italic size=9 family="Times New Roman") &lt;BR /&gt;
            label='Dummy C' &lt;BR /&gt;
            labelattrs=(color=black style=italic size=9 family="Times New Roman");&lt;BR /&gt;
&lt;BR /&gt;
        layout overlay;&lt;BR /&gt;
          entry halign=center 'Weeks';&lt;BR /&gt;
        endlayout;&lt;BR /&gt;
&lt;BR /&gt;
        sidebar / spacefill=false;&lt;BR /&gt;
          discretelegend 'grp1' 'grp2' 'grp3' / border=no across=3;&lt;BR /&gt;
        endsidebar;&lt;BR /&gt;
      endlayout;&lt;BR /&gt;
    endgraph;&lt;BR /&gt;
    end;&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
  ods graphics / width=8in height=6in imagename="&amp;amp;program";&lt;BR /&gt;
  proc sgrender data=&amp;amp;inds template=Gtl_Bars;&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
%BarPlot(inds=freqout,&lt;BR /&gt;
         title1=&amp;amp;test01,&lt;BR /&gt;
         title2=&amp;amp;analset,&lt;BR /&gt;
         ylabel=%str(Proportion of Subjects with HbA1c &amp;lt; 7% )&lt;BR /&gt;
         );</description>
      <pubDate>Tue, 07 Jun 2011 19:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8942#M75</guid>
      <dc:creator>CharlieHe</dc:creator>
      <dc:date>2011-06-07T19:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8943#M76</link>
      <description>Hi, &lt;BR /&gt;
  An &amp;lt; sign (or &amp;gt; sign) caused your posted code to be interpreted as HTML tags by the forum posting software -- so if you were wondering why your posting seemed to "disappear", that's why it happened.. So the solution is to "hide" the &amp;lt; sign in such as way that it will NOT be interpreted as HTML. &lt;BR /&gt;
&lt;BR /&gt;
  The way you hide the &amp;lt; sign in code is to use &lt;BR /&gt;
&lt;B&gt;&amp;amp;lt; &lt;BR /&gt;
ampersand-L-T-semicolon&lt;/B&gt;&lt;BR /&gt;
 in any code you plan to post -- you can generally do this by doing a FIND/REPLACE in your text editor. In a similar fashion, any &lt;B&gt; &amp;gt;&lt;/B&gt; sign would be replaced with &lt;B&gt; &amp;amp;gt; &lt;/B&gt; in your code.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 07 Jun 2011 20:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8943#M76</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-06-07T20:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8944#M77</link>
      <description>layout lattice / rows=5 columndatarange=union rowweights=(0.84 .04 .04 .04 .04);&lt;BR /&gt;
        layout overlay / cycleattrs=true ;&lt;BR /&gt;
/* Stepplot is OK */&lt;BR /&gt;
/*        stepplot x=order y=grppct1 /  name='grp1';&lt;BR /&gt;
          stepplot x=order y=grppct2 /  name='grp2';&lt;BR /&gt;
          stepplot x=order y=grppct3 /  name='grp3';&lt;BR /&gt;
*/          &lt;BR /&gt;
/* Barchart is not OK, bottom 3 blockplots disappeared */&lt;BR /&gt;
          barchart x=order y=grppct1 / name='grp1';&lt;BR /&gt;
          barchart x=order y=grppct2 /  name='grp2';&lt;BR /&gt;
          barchart x=order y=grppct3 /  name='grp3';&lt;BR /&gt;
        endlayout;&lt;BR /&gt;
 &lt;BR /&gt;
        blockplot x=order block=grptot1 / display=(values label) &lt;BR /&gt;
            valuehalign=right &lt;BR /&gt;
            repeatedvalues=true &lt;BR /&gt;
            valueattrs=(color=black style=italic size=9 family="Times New Roman")             &lt;BR /&gt;
            label='Dummy A'&lt;BR /&gt;
            labelattrs=(color=black style=italic size=9 family="Times New Roman");&lt;BR /&gt;
        blockplot x=order block=grptot2 / display=(values label)&lt;BR /&gt;
            valuehalign=right &lt;BR /&gt;
            repeatedvalues=true &lt;BR /&gt;
            valueattrs=(color=black style=italic size=9 family="Times New Roman") &lt;BR /&gt;
            label='Dummy B'&lt;BR /&gt;
            labelattrs=(color=black style=italic size=9 family="Times New Roman");&lt;BR /&gt;
        blockplot x=order block=grptot3 / display=(values label) &lt;BR /&gt;
            valuehalign=right&lt;BR /&gt;
            repeatedvalues=true &lt;BR /&gt;
            valueattrs=(color=black style=italic size=9 family="Times New Roman") &lt;BR /&gt;
            label='Dummy C' &lt;BR /&gt;
            labelattrs=(color=black style=italic size=9 family="Times New Roman");&lt;BR /&gt;
&lt;BR /&gt;
        layout overlay;&lt;BR /&gt;
          entry halign=center 'Weeks';&lt;BR /&gt;
        endlayout;&lt;BR /&gt;
&lt;BR /&gt;
        sidebar / spacefill=false;&lt;BR /&gt;
          discretelegend 'grp1' 'grp2' 'grp3' / border=no across=3;&lt;BR /&gt;
        endsidebar;&lt;BR /&gt;
      endlayout;&lt;BR /&gt;
    endgraph;&lt;BR /&gt;
    end;&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
  ods graphics / width=8in height=6in imagename="&amp;amp;program";&lt;BR /&gt;
  proc sgrender data=&amp;amp;inds template=Gtl_Bars;&lt;BR /&gt;
  run;&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
%BarPlot(inds=freqout,&lt;BR /&gt;
         title1=&amp;amp;test01,&lt;BR /&gt;
         title2=&amp;amp;analset,&lt;BR /&gt;
         ylabel=%str(Proportion of Subjects with HbA1c &amp;lt; 7% ) );</description>
      <pubDate>Tue, 07 Jun 2011 20:15:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8944#M77</guid>
      <dc:creator>CharlieHe</dc:creator>
      <dc:date>2011-06-07T20:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8945#M78</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thanks. I do not have &amp;lt; or &amp;gt; in the code and not sure why the code was cut off. I have copied rest code in the reply post.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for you help.&lt;BR /&gt;
&lt;BR /&gt;
Yeming&lt;BR /&gt;
&lt;BR /&gt;
Here is the statement got cut off.&lt;BR /&gt;
      entryfootnote textattrs=(weight=normal size=8 family="Times New Roman") halign=left "Created on " SYSDATE;</description>
      <pubDate>Tue, 07 Jun 2011 20:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8945#M78</guid>
      <dc:creator>CharlieHe</dc:creator>
      <dc:date>2011-06-07T20:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8946#M79</link>
      <description>I am still looking, but one reason is that each cell with its own axis will take up too much space.  So, add the ColumnAxes - EndColumnAxes block to get a single common external axis.&lt;BR /&gt;
&lt;BR /&gt;
Still, I had to add Layout Overlay around each BlockPlot.  I don't know why, but at least this works.  See attached code and graph.  Let me know if this is what you expect.  I had to un-macrofy your code to see what the errors were.</description>
      <pubDate>Tue, 07 Jun 2011 20:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8946#M79</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2011-06-07T20:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8947#M80</link>
      <description>Hi Sanjay,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your reply. The graph now looks different.&lt;BR /&gt;
The original stepplot is same as old SAS/Graph output. ie. the blockplot acts like annotation outside main plot (stepplot or barchart). I still wish we can have something like the stepplot.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Yeming</description>
      <pubDate>Tue, 07 Jun 2011 22:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8947#M80</guid>
      <dc:creator>CharlieHe</dc:creator>
      <dc:date>2011-06-07T22:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8948#M81</link>
      <description>I believe it is the interaction between linear and discrete data between the Bar and the Block plot.  StepPlot by default assumes interval data, just like block plots. So thay are all consistent.&lt;BR /&gt;
&lt;BR /&gt;
But when you change the top plot to BarChart, that becomes the primary plot, and the axis is assumed to be discrete.  Then, the block plot using the same numeric data cannot draw on the discrete axis.  It should, but there may be a bug.&lt;BR /&gt;
&lt;BR /&gt;
If you use a character X varialbe on all plots like the "Window", that works .  Or, if you change "Order" to character, that will work too.</description>
      <pubDate>Wed, 08 Jun 2011 00:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8948#M81</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2011-06-08T00:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8949#M82</link>
      <description>Note:  Bar widths for the 2nd and 3rd bars are reduced so you can see all 3 bars.  If you don't set barwidth, the bars will occlude the previous ones.  Alternatively, you can also set discrete offset to set the bars side-by-side:&lt;BR /&gt;
&lt;BR /&gt;
  barchart x=window y=grppct1 / name='grp1' barwidth=0.2 discreteoffset=-0.2;&lt;BR /&gt;
  barchart x=window y=grppct2 / name='grp2' barwidth=0.2;&lt;BR /&gt;
  barchart x=window y=grppct3 / name='grp3' barwidth=0.2 discreteoffset=0.2;</description>
      <pubDate>Wed, 08 Jun 2011 00:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8949#M82</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2011-06-08T00:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8950#M83</link>
      <description>Hmmm...well, in the code you've posted, it looks to me like you did have something that upset the forum mechanism.&lt;BR /&gt;
&lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;
[pre]&lt;BR /&gt;
ylabel=%str(Proportion of Subjects with HbA1c &amp;lt; 7% ) ); &lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;/B&gt;</description>
      <pubDate>Wed, 08 Jun 2011 06:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8950#M83</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-06-08T06:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8951#M84</link>
      <description>Yes, we have a reported defect with mixing of character and numeric data as I mentioned earlier.  The work around is to make the X axis data for all plots as discrete (they will become discrete anyway once the defect is fixed).  Or, put LAYOUT OVERLAY around each BLOCKPLOT and force the axis to DISCRETE as shown below.  You also have to set some DISPLAY options to get the look you want.&lt;BR /&gt;
&lt;BR /&gt;
layout overlay/xaxisopts=(type=discrete display=none) walldisplay=none;</description>
      <pubDate>Wed, 08 Jun 2011 13:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8951#M84</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2011-06-08T13:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8952#M85</link>
      <description>Hi Sanjay and Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thank you both. &lt;BR /&gt;
&lt;BR /&gt;
Using character variable "window" instead numeric "order" works. The work around also works good.&lt;BR /&gt;
&lt;BR /&gt;
Sorry, Cynthia. I do not know why I missed that one. I guess I was thinking &amp;lt; and &amp;gt; in html context.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.&lt;BR /&gt;
&lt;BR /&gt;
Yeming</description>
      <pubDate>Wed, 08 Jun 2011 13:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8952#M85</guid>
      <dc:creator>CharlieHe</dc:creator>
      <dc:date>2011-06-08T13:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8953#M86</link>
      <description>Just for my information...Did you go with overlaid bars (Proportion2) or side-by-side (Proportion3)?</description>
      <pubDate>Wed, 08 Jun 2011 14:03:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8953#M86</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2011-06-08T14:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8954#M87</link>
      <description>Side by side. Here is my template and output looks good. If you have any suggestion, please let me know (I need the template for more 10 projects).  - Thanks.&lt;BR /&gt;
&lt;BR /&gt;
  proc template;&lt;BR /&gt;
    define statgraph Gtl_Bars;&lt;BR /&gt;
    begingraph;&lt;BR /&gt;
      entrytitle halign=left "&amp;amp;title1";&lt;BR /&gt;
      entrytitle textattrs=(weight=normal size=9) halign=left "(&amp;amp;title2)";&lt;BR /&gt;
      entrytitle halign=left " ";&lt;BR /&gt;
      entryfootnote halign=left "Generated by &amp;amp;tabno..sas on &amp;amp;sysdate9";&lt;BR /&gt;
      layout lattice / rows=5 columndatarange=union rowweights=(0.84 .04 .04 .04 .04);&lt;BR /&gt;
        layout overlay / cycleattrs=true &lt;BR /&gt;
                         yaxisopts=(label="&amp;amp;ylabel" offsetmin=0)&lt;BR /&gt;
                         xaxisopts=(offsetmin=0.1 offsetmax=0.1 display=(line ticks tickvalues)&lt;BR /&gt;
                         linearopts=(tickdisplaylist=('Baseline' 'Week 6' 'Week 12' 'Week 18' 'Week 26' 'Week 26 LOCF')));&lt;BR /&gt;
          barchart x=window y=grppct1 / discreteoffset=-0.2 barwidth=0.2 fillattrs=(color=lightgray) name='grp1';&lt;BR /&gt;
          barchart x=window y=grppct2 / discreteoffset= 0.0 barwidth=0.2 fillattrs=(color=darkgray) name='grp2';&lt;BR /&gt;
          barchart x=window y=grppct3 / discreteoffset= 0.2 barwidth=0.2 fillattrs=(color=gray) name='grp3';&lt;BR /&gt;
        endlayout;&lt;BR /&gt;
&lt;BR /&gt;
        layout overlay;&lt;BR /&gt;
          entry halign=center 'Weeks';&lt;BR /&gt;
        endlayout;&lt;BR /&gt;
&lt;BR /&gt;
        blockplot x=window block=grptot1 / display=(values label) valuehalign=right repeatedvalues=true &lt;BR /&gt;
            label='Dummy A' labelattrs=(color=black);&lt;BR /&gt;
        blockplot x=window block=grptot2 / display=(values label) valuehalign=right repeatedvalues=true &lt;BR /&gt;
            label='Dummy B' labelattrs=(color=black);&lt;BR /&gt;
        blockplot x=window block=grptot3 / display=(values label) valuehalign=right repeatedvalues=true &lt;BR /&gt;
            label='Dummy C' labelattrs=(color=black);&lt;BR /&gt;
        sidebar / spacefill=false;&lt;BR /&gt;
          discretelegend 'grp1' 'grp2' 'grp3' / border=no across=3;&lt;BR /&gt;
        endsidebar;&lt;BR /&gt;
      endlayout;&lt;BR /&gt;
    endgraph;&lt;BR /&gt;
    end;&lt;BR /&gt;
  run;</description>
      <pubDate>Thu, 09 Jun 2011 19:34:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8954#M87</guid>
      <dc:creator>CharlieHe</dc:creator>
      <dc:date>2011-06-09T19:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8955#M88</link>
      <description>You are mostly there.  If you really want gray scale colors, you can use style=journal on the ods listing destination for consistent colors.  If the "Weeks" is really a axis label, you can leave it as is and get rid of the extra Entry statement</description>
      <pubDate>Thu, 09 Jun 2011 19:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8955#M88</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2011-06-09T19:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Barchart and Blockplot.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8956#M89</link>
      <description>Hi Sanjay,&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much for your help. I will try new style.&lt;BR /&gt;
For x-axis labeling, we will leave as is since it is requested by our medical team.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
Yeming</description>
      <pubDate>Fri, 10 Jun 2011 15:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-with-Barchart-and-Blockplot/m-p/8956#M89</guid>
      <dc:creator>CharlieHe</dc:creator>
      <dc:date>2011-06-10T15:08:29Z</dc:date>
    </item>
  </channel>
</rss>

