<?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: Proc GCHART Date X axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GCHART-Date-X-axis/m-p/212061#M7895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The date variable is stored as date..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd prefer to have missing bars for Feb 1, 2010 so that the x-axis has a common interval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2015 20:53:45 GMT</pubDate>
    <dc:creator>minfante</dc:creator>
    <dc:date>2015-05-08T20:53:45Z</dc:date>
    <item>
      <title>Proc GCHART Date X axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GCHART-Date-X-axis/m-p/212059#M7893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to plot a simple bar chart in SAS 9.3. My data looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plot &lt;/P&gt;&lt;P&gt;07jan2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;12jan2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;22feb2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gchart data=dataset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbar plot / discrete sumvar = plot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type=sum;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The axis that shows is a text axis -- the dates for which no observations exist in the dataset (ex.: Jan 8 2010) do not show up on the x axis.&amp;nbsp; Does anyone have corrections to my codes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 19:54:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GCHART-Date-X-axis/m-p/212059#M7893</guid>
      <dc:creator>minfante</dc:creator>
      <dc:date>2015-05-08T19:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GCHART Date X axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GCHART-Date-X-axis/m-p/212060#M7894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the date variable stored as a date or as text?&amp;nbsp; If it's text then 25Jan2010, for instance, would show up after 22Feb2010 even though you woudn't want it to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you say that the dates for which there are no observations in the dataset don't show up on the x-axis.&amp;nbsp; Isn't that a good thin?&amp;nbsp; I mean, if there are 0 observations for Feb 1, 2010, wouldn't you want it to just not show up on the x-axis instead of having it say Feb 1, 2010 on the x-axis and then have a blank space above it where there is no bar because it Feb 1, 2010 wasn't in the dataset?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 20:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GCHART-Date-X-axis/m-p/212060#M7894</guid>
      <dc:creator>n6</dc:creator>
      <dc:date>2015-05-08T20:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GCHART Date X axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GCHART-Date-X-axis/m-p/212061#M7895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The date variable is stored as date..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd prefer to have missing bars for Feb 1, 2010 so that the x-axis has a common interval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 20:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GCHART-Date-X-axis/m-p/212061#M7895</guid>
      <dc:creator>minfante</dc:creator>
      <dc:date>2015-05-08T20:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GCHART Date X axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-GCHART-Date-X-axis/m-p/212062#M7896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data dataset;&lt;/P&gt;&lt;P&gt;informat date date9.;&lt;/P&gt;&lt;P&gt;format date date9.;&lt;/P&gt;&lt;P&gt;input date $ plot;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;07jan2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;12jan2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;22feb2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;proc gchart data=dataset;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbar date / discrete sumvar = plot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type=sum midpoints=('07jan2010'd to '22feb2010'd);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 21:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-GCHART-Date-X-axis/m-p/212062#M7896</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-05-08T21:15:38Z</dc:date>
    </item>
  </channel>
</rss>

