<?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: Formatting X-Axis with SG Render in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-Axis-with-SG-Render/m-p/248370#M9016</link>
    <description>&lt;P&gt;In the LINEAROPTs bundle for the X axis, specify INTEGER=TRUE.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2016 18:55:52 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2016-02-05T18:55:52Z</dc:date>
    <item>
      <title>Formatting X-Axis with SG Render</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-Axis-with-SG-Render/m-p/248369#M9015</link>
      <description>&lt;P&gt;In some cases my x axis is being formatted with year like 2001.5 2002 2002.5.&amp;nbsp; How can I format it as 2001 2002 2003?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph multiLineGraph2;&lt;BR /&gt;begingraph;&lt;BR /&gt;layout&lt;BR /&gt;overlay / xaxisopts =(label = ' ') yaxisopts =(label = ' ' linearopts=(viewmin=0)) walldisplay=(fill);&lt;BR /&gt;seriesplot x=FOUR_DIGIT_YEAR y= mergedColumn / group= columnDisplay name='a' index=index display=all;&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgrender data=combined2 template=multiLineGraph2;&lt;BR /&gt;&amp;nbsp; format mergedColumn 4.2 four_digit_year 4.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 18:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-Axis-with-SG-Render/m-p/248369#M9015</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-02-05T18:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting X-Axis with SG Render</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-Axis-with-SG-Render/m-p/248370#M9016</link>
      <description>&lt;P&gt;In the LINEAROPTs bundle for the X axis, specify INTEGER=TRUE.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 18:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-Axis-with-SG-Render/m-p/248370#M9016</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-02-05T18:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting X-Axis with SG Render</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-Axis-with-SG-Render/m-p/248371#M9017</link>
      <description>&lt;P&gt;The easiest way is to add a YEAR4.&amp;nbsp;format to your data (You currently are using the 4. format):&lt;/P&gt;
&lt;P&gt;format FOUR_DIGIT_YEAR YEAR4.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to change the template, then go to the &lt;A href="http://support.sas.com/documentation/cdl/en/grstatgraph/67882/HTML/default/viewer.htm#n0fksz728ytyz2n1ws13vlnkudyn.htm" target="_self"&gt;doc for the GTL axis options.&lt;/A&gt;&amp;nbsp;and look at INTERVAL= option. You can use INTERVAL=YEAR if you are using the template for many data sets and are not sure that they will all have YEAR4 formats.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 18:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-Axis-with-SG-Render/m-p/248371#M9017</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-02-05T18:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting X-Axis with SG Render</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-Axis-with-SG-Render/m-p/248373#M9018</link>
      <description>&lt;P&gt;Dan just mentioned a good point: It depends on your data. (Thanks, Dan.) His way is correct if your data are raw numbers like 2000, 2001, 2002.&amp;nbsp; My way assumed that you are using SAS date values, but you probably aren't or else you wouldn't be having this issue.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 19:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-Axis-with-SG-Render/m-p/248373#M9018</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-02-05T19:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting X-Axis with SG Render</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-Axis-with-SG-Render/m-p/248374#M9019</link>
      <description>&lt;P&gt;All of these solutions are nice. &amp;nbsp;I went with Dan's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks I had a hard time figuring this one out.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 19:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Formatting-X-Axis-with-SG-Render/m-p/248374#M9019</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-02-05T19:11:33Z</dc:date>
    </item>
  </channel>
</rss>

