<?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 how to subset data for a graph so that lines are not stacked? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45242#M1500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert pointed out I did not use the 'Bucket' variable.&amp;nbsp; You can retain it in the data, and either use BY statement in SGPLOT (for separate graphs), or use SGPANEL and PANELBY Bucket to get both buckets in the same graph.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With SAS 9.3, you can use a GROUP variable with GROUPDISPLAY=CLUSTER as another option. or you can use DISCRETEOFFSET to be more creative.&amp;nbsp; With SAS 9.3, you also have the DataSkin option to spiffy up the appearance.&amp;nbsp; See recent &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/"&gt;blog article&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Mar 2012 18:30:48 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2012-03-27T18:30:48Z</dc:date>
    <item>
      <title>how to subset data for a graph so that lines are not stacked?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45235#M1493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following example which produces the attached graph.&amp;nbsp; How do I alter the code so that in the output the orange and green bars are not stacked but rather one in front of the other?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a ton!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt; test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt; bucket date:&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-family: 'Courier New'; background-color: white;"&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt; pct group $;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;datalines&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;1 11/01/2011 2 Study&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;1 12/01/2011 3 Study&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;1 01/01/2012 2 Study&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;1 11/01/2011 3 Base&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;1 12/01/2011 5 Base&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;1 01/01/2012 3 Base&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;2 11/01/2011 6 Study&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;2 12/01/2011 3 Study&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;2 01/01/2012 4 Study&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;2 11/01/2011 3 Base&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;2 12/01/2011 7 Base&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;2 01/01/2012 2 Base&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;PROC&lt;/STRONG&gt; &lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;GCHART&lt;/STRONG&gt; &lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt;=WORK.test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt; date &lt;/SPAN&gt;&lt;SPAN style="color: teal; font-family: 'Courier New'; background-color: white;"&gt;mmyyd7.&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;VBAR3d&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt;/&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;discrete&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;SUMVAR&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;pct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;group&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt;=bucket&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;subgroup&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt;=group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;CLIPREF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;FRAME&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;TYPE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;SUM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; background-color: white;"&gt;COUTLINE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt;=BLACK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;; &lt;STRONG style="color: navy; background-color: white; font-family: 'Courier New';"&gt;QUIT&lt;/STRONG&gt;;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11276i43F82C5E8B864286/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="test.jpg" title="test.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 17:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45235#M1493</guid>
      <dc:creator>SASguyCO</dc:creator>
      <dc:date>2012-03-27T17:26:45Z</dc:date>
    </item>
    <item>
      <title>how to subset data for a graph so that lines are not stacked?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45236#M1494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Getting bars to appear as though they're in-front/behind each other (rather than stacked or side-by-side) is a bit tricky in SAS/Graph (not really one of the built-in features of Gchart).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example that you might like to look at, that uses annotate to draw the overlapping bars:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd29/robslink.htm"&gt;http://robslink.com/SAS/democd29/robslink.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd29/robslink_info.htm"&gt;http://robslink.com/SAS/democd29/robslink_info.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 17:38:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45236#M1494</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-03-27T17:38:25Z</dc:date>
    </item>
    <item>
      <title>how to subset data for a graph so that lines are not stacked?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45237#M1495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Is it simpler to have it done side by side?&amp;nbsp; Doesn't need to be one in front of the other, just not stacked.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 17:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45237#M1495</guid>
      <dc:creator>SASguyCO</dc:creator>
      <dc:date>2012-03-27T17:42:23Z</dc:date>
    </item>
    <item>
      <title>how to subset data for a graph so that lines are not stacked?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45238#M1496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is relatively straightforward with SGPLOT.&amp;nbsp; Here is the code and output.&amp;nbsp; You can modify it to suit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input bucket date:mmddyy10. pct group $;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 11/01/2011 2 Study&lt;/P&gt;&lt;P&gt;1 12/01/2011 3 Study&lt;/P&gt;&lt;P&gt;1 01/01/2012 2 Study&lt;/P&gt;&lt;P&gt;1 11/01/2011 3 Base&lt;/P&gt;&lt;P&gt;1 12/01/2011 5 Base&lt;/P&gt;&lt;P&gt;1 01/01/2012 3 Base&lt;/P&gt;&lt;P&gt;2 11/01/2011 6 Study&lt;/P&gt;&lt;P&gt;2 12/01/2011 3 Study&lt;/P&gt;&lt;P&gt;2 01/01/2012 4 Study&lt;/P&gt;&lt;P&gt;2 11/01/2011 3 Base&lt;/P&gt;&lt;P&gt;2 12/01/2011 7 Base&lt;/P&gt;&lt;P&gt;2 01/01/2012 2 Base&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*--Transpose grouped data into multi-variable--*/&lt;/P&gt;&lt;P&gt;data multiVar;&lt;/P&gt;&lt;P&gt; keep Study Base date;&lt;/P&gt;&lt;P&gt; format date mmddyy10.;&lt;/P&gt;&lt;P&gt; merge test(where=(group="Study") rename=(pct=Study))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test(where=(group="Base") rename=(pct=Base));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods listing gpath='C:\Work\Blogs\Communities\images';&lt;/P&gt;&lt;P&gt;ods graphics / reset width=5in height=3in imagename='BarOverlay'&lt;/P&gt;&lt;P&gt;title 'Percent by Study';&lt;/P&gt;&lt;P&gt;proc sgplot data=multivar;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vbar date / response=base nostatlabel;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vbar date / response=study nostatlabel barwidth=0.7 transparency=0.1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; yaxis label='Pct';&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis display=(nolabel);&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="BarOverlay.png" class="jive-image-thumbnail jive-image" onclick="" src="https://communities.sas.com/legacyfs/online/1574_BarOverlay.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 17:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45238#M1496</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2012-03-27T17:43:53Z</dc:date>
    </item>
    <item>
      <title>how to subset data for a graph so that lines are not stacked?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45239#M1497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; You the man Sanjay! thanks so much.&amp;nbsp; that's very easy and helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 17:54:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45239#M1497</guid>
      <dc:creator>SASguyCO</dc:creator>
      <dc:date>2012-03-27T17:54:29Z</dc:date>
    </item>
    <item>
      <title>how to subset data for a graph so that lines are not stacked?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45240#M1498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note, you do need SAS 9.2 or later version to use SG procedures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 17:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45240#M1498</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2012-03-27T17:59:38Z</dc:date>
    </item>
    <item>
      <title>how to subset data for a graph so that lines are not stacked?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45241#M1499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or, how to do it with Gchart (if you don't have 9.2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;input bucket date:mmddyy10. pct group $;&lt;BR /&gt;datalines;&lt;BR /&gt;1 11/01/2011 2 Study&lt;BR /&gt;1 12/01/2011 3 Study&lt;BR /&gt;1 01/01/2012 2 Study&lt;BR /&gt;1 11/01/2011 3 Base&lt;BR /&gt;1 12/01/2011 5 Base&lt;BR /&gt;1 01/01/2012 3 Base&lt;BR /&gt;2 11/01/2011 6 Study&lt;BR /&gt;2 12/01/2011 3 Study&lt;BR /&gt;2 01/01/2012 4 Study&lt;BR /&gt;2 11/01/2011 3 Base&lt;BR /&gt;2 12/01/2011 7 Base&lt;BR /&gt;2 01/01/2012 2 Base&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 label=none value=none;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gchart data=test;&lt;BR /&gt;by bucket;&lt;BR /&gt;format date mmddyy10.;&lt;BR /&gt;vbar group / maxis=axis1&lt;BR /&gt; type=sum sumvar=pct subgroup=group&lt;BR /&gt; group=date gspace=5 space=0;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 18:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45241#M1499</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-03-27T18:30:05Z</dc:date>
    </item>
    <item>
      <title>how to subset data for a graph so that lines are not stacked?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45242#M1500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert pointed out I did not use the 'Bucket' variable.&amp;nbsp; You can retain it in the data, and either use BY statement in SGPLOT (for separate graphs), or use SGPANEL and PANELBY Bucket to get both buckets in the same graph.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With SAS 9.3, you can use a GROUP variable with GROUPDISPLAY=CLUSTER as another option. or you can use DISCRETEOFFSET to be more creative.&amp;nbsp; With SAS 9.3, you also have the DataSkin option to spiffy up the appearance.&amp;nbsp; See recent &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/"&gt;blog article&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 18:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45242#M1500</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2012-03-27T18:30:48Z</dc:date>
    </item>
    <item>
      <title>how to subset data for a graph so that lines are not stacked?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45243#M1501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I'm using EG 4.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjay, can you provide example syntax for using the sgpanel and the panelby commands?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 18:59:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45243#M1501</guid>
      <dc:creator>SASguyCO</dc:creator>
      <dc:date>2012-03-27T18:59:05Z</dc:date>
    </item>
    <item>
      <title>how to subset data for a graph so that lines are not stacked?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45244#M1502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is good to Robert, but I'd rather have it all on one graph as opposed to separate graphs for each bucket. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 18:59:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45244#M1502</guid>
      <dc:creator>SASguyCO</dc:creator>
      <dc:date>2012-03-27T18:59:47Z</dc:date>
    </item>
    <item>
      <title>how to subset data for a graph so that lines are not stacked?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45245#M1503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="BarOverlayPanel.png" class="jive-image-thumbnail jive-image" onclick="" src="https://communities.sas.com/legacyfs/online/1575_BarOverlayPanel.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input bucket date:mmddyy10. pct group $;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 11/01/2011 2 Study&lt;/P&gt;&lt;P&gt;1 12/01/2011 3 Study&lt;/P&gt;&lt;P&gt;1 01/01/2012 2 Study&lt;/P&gt;&lt;P&gt;1 11/01/2011 3 Base&lt;/P&gt;&lt;P&gt;1 12/01/2011 5 Base&lt;/P&gt;&lt;P&gt;1 01/01/2012 3 Base&lt;/P&gt;&lt;P&gt;2 11/01/2011 6 Study&lt;/P&gt;&lt;P&gt;2 12/01/2011 3 Study&lt;/P&gt;&lt;P&gt;2 01/01/2012 4 Study&lt;/P&gt;&lt;P&gt;2 11/01/2011 3 Base&lt;/P&gt;&lt;P&gt;2 12/01/2011 7 Base&lt;/P&gt;&lt;P&gt;2 01/01/2012 2 Base&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*--Transpose grouped data into multi-variable--*/&lt;/P&gt;&lt;P&gt;data multiVar;&lt;/P&gt;&lt;P&gt; keep bucket Study Base date;&lt;/P&gt;&lt;P&gt; format date mmddyy10.;&lt;/P&gt;&lt;P&gt; merge test(where=(group="Study") rename=(pct=Study))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test(where=(group="Base") rename=(pct=Base));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods listing gpath='C:\Work\Blogs\Communities\images';&lt;/P&gt;&lt;P&gt;ods graphics / reset width=5in height=3in imagename='BarOverlayPlot';&lt;/P&gt;&lt;P&gt;title 'Percent by Study';&lt;/P&gt;&lt;P&gt;proc sgplot data=multivar;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by bucket;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vbar date / response=base nostatlabel;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vbar date / response=study nostatlabel barwidth=0.7 transparency=0.1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; yaxis label='Pct';&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis display=(nolabel);&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods graphics / reset width=5in height=3in imagename='BarOverlayPanel';&lt;/P&gt;&lt;P&gt;title 'Percent by Study';&lt;/P&gt;&lt;P&gt;proc sgpanel data=multivar;&lt;/P&gt;&lt;P&gt;&amp;nbsp; panelby bucket / onepanel columns=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vbar date / response=base nostatlabel;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vbar date / response=study nostatlabel barwidth=0.7 transparency=0.1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rowaxis label='Pct';&lt;/P&gt;&lt;P&gt;&amp;nbsp; colaxis display=(nolabel);&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 19:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-subset-data-for-a-graph-so-that-lines-are-not-stacked/m-p/45245#M1503</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2012-03-27T19:11:32Z</dc:date>
    </item>
  </channel>
</rss>

