<?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: White space showing up between band groups in proc sgpanel in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/White-space-showing-up-between-band-groups-in-proc-sgpanel/m-p/865919#M23606</link>
    <description>&lt;P&gt;Wow, Dan, I believe this fixed it!&amp;nbsp; Thanks so much for this and for sticking with this issue.&amp;nbsp; I was pretty much ready to give up.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 13:06:50 GMT</pubDate>
    <dc:creator>Bhando</dc:creator>
    <dc:date>2023-03-23T13:06:50Z</dc:date>
    <item>
      <title>White space showing up between band groups in proc sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/White-space-showing-up-between-band-groups-in-proc-sgpanel/m-p/863340#M23576</link>
      <description>&lt;P&gt;I am trying to graph monthly prevalence of 2 diseases over a 6 year time period.&amp;nbsp; I'm using proc sgpanel to break up the 4 hospitals data.&amp;nbsp; I'm using the 'band' function to delineate between pre and post an EHR changeover. I created a dummy variable to indicate which EHR was associated with that particular year/month (my x-axis is date). Everything seemed to work...EXCEPT - I have a white band between the banded groups.&amp;nbsp; I have checked the underlying data several times and there is no gap in the data.&amp;nbsp; I have read the documentation on the band function, consulted several books and even asked ChatGPT (which did horrible!).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's really nothing of value from the log and again, there are no gaps in the data that would indicate there should be a white space here.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code (a few var names changed):&lt;/P&gt;&lt;PRE&gt;proc sgpanel data=enc;
	where fisc_monyr &amp;gt;= '01Nov2015'd;
	panelby hosp / layout=rowlattice onepanel	novarname uniscale=column;
	series x=fisc_monyr y=var1 / Name="var1" legendlabel='varname' lineattrs=(color=black);
	series x=fisc_monyr y=var2 / Name="var2" legendlabel='varname2' lineattrs=(color=crimson);
	band x=fisc_monyr upper=var1 lower=0 /name="band" legendlabel="bandvar" NOMISSINGGROUP
	group=post_gen  transparency=0.7;
	format post_gen post_genf.;
	colaxis grid
			values=('01Nov2015'd, '01Nov2016'd to '01Nov2020'd by year,'01Oct2021'd)
			offsetmin=0 offsetmax=0
			valuesformat=monyy. 
			label="Month-Year"
			;
	rowaxis grid
			label="Encounters per month";
	format fisc_monyr monyy.;
	/*Add refline for ehr date*/
	refline covid_start / name="cov" axis=x label=covid_label 
										labelattrs=(color=black Family=arial
										size=7) legendlabel="COVID19 Start"
										lineattrs=(color=black
										pattern=dot
										thickness=1)
										;
keylegend "var1" "var2" "band";
run;&lt;/PRE&gt;&lt;P&gt;Here is the band I was referring to: The white space between the blue and red fill.&amp;nbsp; Is there anything obvious I'm doing wrong here?&amp;nbsp; Thanks in advance for all your help.&amp;nbsp; This community has been so great in helping to build this graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bhando_0-1678417772795.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81293i2EA98219DCD07A5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bhando_0-1678417772795.png" alt="Bhando_0-1678417772795.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 03:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/White-space-showing-up-between-band-groups-in-proc-sgpanel/m-p/863340#M23576</guid>
      <dc:creator>Bhando</dc:creator>
      <dc:date>2023-03-10T03:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: White space showing up between band groups in proc sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/White-space-showing-up-between-band-groups-in-proc-sgpanel/m-p/863347#M23577</link>
      <description>Please check out this post:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Histogram-with-different-fill-colors-beyond-a-specified-point/td-p/140659" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Histogram-with-different-fill-colors-beyond-a-specified-point/td-p/140659&lt;/A&gt;</description>
      <pubDate>Fri, 10 Mar 2023 04:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/White-space-showing-up-between-band-groups-in-proc-sgpanel/m-p/863347#M23577</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2023-03-10T04:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: White space showing up between band groups in proc sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/White-space-showing-up-between-band-groups-in-proc-sgpanel/m-p/863557#M23580</link>
      <description>Thanks so much for this. Will try this this weekend. I'm not sure if this applies to me or not given they're using a histogram. But I trust I'll find some useful info here. THanks again!&lt;BR /&gt;Ben</description>
      <pubDate>Fri, 10 Mar 2023 23:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/White-space-showing-up-between-band-groups-in-proc-sgpanel/m-p/863557#M23580</guid>
      <dc:creator>Bhando</dc:creator>
      <dc:date>2023-03-10T23:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: White space showing up between band groups in proc sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/White-space-showing-up-between-band-groups-in-proc-sgpanel/m-p/863802#M23586</link>
      <description>&lt;P&gt;It appears that the gap is created because you start the second band on the next data increment of the series instead of where the first band actually stops. For example, if your X data range went from 1 - 10, and the first band stopped at 5, you are starting the next band at 6 instead of at 5. This leaves a gap between 5 and 6. You probably just need to adjust your data processing to start the second band at the previous "X" step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 15:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/White-space-showing-up-between-band-groups-in-proc-sgpanel/m-p/863802#M23586</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2023-03-13T15:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: White space showing up between band groups in proc sgpanel</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/White-space-showing-up-between-band-groups-in-proc-sgpanel/m-p/865919#M23606</link>
      <description>&lt;P&gt;Wow, Dan, I believe this fixed it!&amp;nbsp; Thanks so much for this and for sticking with this issue.&amp;nbsp; I was pretty much ready to give up.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 13:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/White-space-showing-up-between-band-groups-in-proc-sgpanel/m-p/865919#M23606</guid>
      <dc:creator>Bhando</dc:creator>
      <dc:date>2023-03-23T13:06:50Z</dc:date>
    </item>
  </channel>
</rss>

