<?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: How do I display subset of time values on XAXIS in SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-display-subset-of-time-values-on-XAXIS-in-SGPLOT/m-p/332986#M11600</link>
    <description>TYPE=TIME in addition to INTERVAL=MINUTE along with the TICKVALUEFORMAT=myformat. resolved my display issue.  Thanks to all for the input.</description>
    <pubDate>Wed, 15 Feb 2017 13:10:40 GMT</pubDate>
    <dc:creator>eshupp</dc:creator>
    <dc:date>2017-02-15T13:10:40Z</dc:date>
    <item>
      <title>How do I display subset of time values on XAXIS in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-display-subset-of-time-values-on-XAXIS-in-SGPLOT/m-p/332727#M11583</link>
      <description>&lt;P&gt;I am producing a stacked VBAR with SGPLOT (replicating a GCHART) with 24 hours of 5 minute interval data on zOS SAS 9.4 TS1M4. &amp;nbsp;I only want to display hourly values on the XAXIS (ie: 1, 2, 3,...23) but SGPLOT wants to display a value for each 5 minute time value. &amp;nbsp;Based on other answers I tried createing a tick format with VALUE entries for each hourly time value ('01:00:00't ... '23:00:00't) translating to a value and OTHER='' and then using the VALUESFORMAT= option on the XAXIS statement but that did not work and the chart displayed unreadable values for each bar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=vmlpar;
by sysid;
vbar time / response=lnxbusy fill group=vmduser grouporder=ascending stat=sum;
xaxis label='Time of Day' valueattrs=(blue) valuesformat=tick.;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13443iBB976FC3193585A3/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="vbar chart.gif" title="vbar chart.gif" /&gt;</description>
      <pubDate>Tue, 14 Feb 2017 17:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-display-subset-of-time-values-on-XAXIS-in-SGPLOT/m-p/332727#M11583</guid>
      <dc:creator>eshupp</dc:creator>
      <dc:date>2017-02-14T17:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display subset of time values on XAXIS in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-display-subset-of-time-values-on-XAXIS-in-SGPLOT/m-p/332732#M11584</link>
      <description>&lt;P&gt;I'm not sure - can you enter a format statment in the sqgplot &amp;nbsp;- like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; format time time2. ;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, create a new variable to be used on VBAR statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;hour = hour(time);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 17:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-display-subset-of-time-values-on-XAXIS-in-SGPLOT/m-p/332732#M11584</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-02-14T17:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display subset of time values on XAXIS in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-display-subset-of-time-values-on-XAXIS-in-SGPLOT/m-p/332742#M11585</link>
      <description>&lt;P&gt;Since you are using SAS 9.4m3 or greater, try adding TYPE=TIME to your XAXIS statement and see if you get what you want. You can also control the intervals displayed by using the INTERVAL option on the XAXIS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 18:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-display-subset-of-time-values-on-XAXIS-in-SGPLOT/m-p/332742#M11585</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-02-14T18:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display subset of time values on XAXIS in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-display-subset-of-time-values-on-XAXIS-in-SGPLOT/m-p/332744#M11586</link>
      <description>&lt;P&gt;did you try&amp;nbsp; the INTERVAL=HOUR option on your XAXIS statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also need to use TICKVALUEFORMAT=time2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This does assume that that your variable time is a SAS time value.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 18:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-display-subset-of-time-values-on-XAXIS-in-SGPLOT/m-p/332744#M11586</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-14T18:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display subset of time values on XAXIS in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-display-subset-of-time-values-on-XAXIS-in-SGPLOT/m-p/332986#M11600</link>
      <description>TYPE=TIME in addition to INTERVAL=MINUTE along with the TICKVALUEFORMAT=myformat. resolved my display issue.  Thanks to all for the input.</description>
      <pubDate>Wed, 15 Feb 2017 13:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-display-subset-of-time-values-on-XAXIS-in-SGPLOT/m-p/332986#M11600</guid>
      <dc:creator>eshupp</dc:creator>
      <dc:date>2017-02-15T13:10:40Z</dc:date>
    </item>
  </channel>
</rss>

