<?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: Set the axis min and max for a SAS Chart in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Set-the-axis-min-and-max-for-a-SAS-Chart/m-p/293586#M10347</link>
    <description>&lt;PRE class="sascode"&gt;linearopts=(viewmin=0 viewmax=70
                              tickvaluelist=(0 10 20 30 40 50 60 70));&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think yaxisopts is the correct location and specified as above. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;At least for survival graphs &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&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>Tue, 23 Aug 2016 22:24:28 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-08-23T22:24:28Z</dc:date>
    <item>
      <title>Set the axis min and max for a SAS Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Set-the-axis-min-and-max-for-a-SAS-Chart/m-p/293580#M10346</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a uniform set of charts, as such I would like them all to have the same scale on my first axis, is there a way to set the axis so they all are the same. &amp;nbsp;Here is the code I am working with, I tried to add the yaxisopts but keep getting an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET gpath=C:\;&lt;BR /&gt;data On;&lt;BR /&gt;input @1 Car $4. @6 SASDate mmddyy10. @17 OnRent 4. @22 OnRent1 4.;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8008"&gt;@22&lt;/a&gt; OnRent1 4.;&lt;BR /&gt;datalines;&lt;BR /&gt;Blue,01/01/1970,0.90,0.90&lt;BR /&gt;Blue,02/01/1970,0.89,0.90&lt;BR /&gt;Blue,03/01/1970,0.85,0.90&lt;BR /&gt;Blue,04/01/1970,0.90,0.90&lt;BR /&gt;Blue,05/01/1970,0.85,0.90&lt;BR /&gt;Blue,06/01/1970,0.89,0.90&lt;BR /&gt;Blue,07/01/1970,0.91,0.90&lt;BR /&gt;Blue,08/01/1970,0.92,0.90&lt;BR /&gt;Blue,09/01/1970,0.93,0.90&lt;BR /&gt;Blue,10/01/1970,0.94,0.90&lt;BR /&gt;Grey,01/01/1970,0.70,0.68&lt;BR /&gt;Grey,02/01/1970,0.59,0.68&lt;BR /&gt;Grey,03/01/1970,0.55,0.68&lt;BR /&gt;Grey,04/01/1970,0.70,0.68&lt;BR /&gt;Grey,05/01/1970,0.55,0.68&lt;BR /&gt;Grey,06/01/1970,0.59,0.68&lt;BR /&gt;Grey,07/01/1970,0.71,0.68&lt;BR /&gt;Grey,08/01/1970,0.72,0.68&lt;BR /&gt;Grey,09/01/1970,0.73,0.68&lt;BR /&gt;Grey,10/01/1970,0.74,0.68&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;DATA ONBlue;&lt;BR /&gt;Set ON;&lt;BR /&gt;WHERE Car='Blue';&lt;BR /&gt;RUN;&lt;BR /&gt;DATA ONGrey;&lt;BR /&gt;Set ON;&lt;BR /&gt;WHERE Car='Grey';&lt;BR /&gt;RUN;&lt;BR /&gt;%Let dpi=100;&lt;BR /&gt;%Let w=8in;&lt;BR /&gt;%Let h=4.5in;&lt;/P&gt;&lt;P&gt;%Macro GraphUte;&lt;BR /&gt;%Do i = 1 %to 2;&lt;BR /&gt;%If &amp;amp;i=1 %then %do; %Let CarTypeN=Blue;%Let Vars=OnRent ;%Let C = Blue;%Let Data1=On&amp;amp;C.;%END;&lt;BR /&gt;%Else %If &amp;amp;i=2 %then %do; %Let CarTypeN=Grey;%Let Vars=OnRent ;%Let C = Grey;%Let Data1=On&amp;amp;C.;%END;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph panel;&lt;BR /&gt;begingraph;&lt;BR /&gt;entrytitle "&amp;amp;CarTypeN. On Rent by &amp;amp;vars.";&lt;BR /&gt;*layout overlay / yaxisopts=linearopts=(tickvaluesequence=(start=0 end=70 increment=10) viewmin=0 viewmax=70));&lt;BR /&gt;layout gridded / rowgutter=5;&lt;BR /&gt;layout datapanel classvars=(Car) / rowaxisopts=(griddisplay=on) columnaxisopts=(tickvalueattrs=(size=7)griddisplay=on) columns=1 headerLabelDisplay=Value cellheightmin=50;&lt;BR /&gt;layout prototype / cycleattrs=true;&lt;BR /&gt;SeriesPlot X=SASDate Y=OnRent1 / primary=true display=(markers) markerattrs=(size=9px symbol=circlefilled) lineattrs=(thickness=2px) NAME="s1";&lt;BR /&gt;SeriesPlot X=SASDate Y=&amp;amp;Vars. / yaxis=y2 display=(markers) markerattrs=(size=9px symbol=circlefilled) lineattrs=(thickness=2px) NAME="s2";&lt;/P&gt;&lt;P&gt;endlayout;&lt;BR /&gt;endlayout;&lt;BR /&gt;*Endlayout;&lt;BR /&gt;DiscreteLegend "s1" "s2" /;&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;Title "";&lt;BR /&gt;/*--Render graph--*/&lt;BR /&gt;ods listing style=htmlblue gpath="&amp;amp;graphs." image_dpi=&amp;amp;dpi;&lt;BR /&gt;ods graphics / reset width=&amp;amp;w height=&amp;amp;h imagename="&amp;amp;C.UteByVar";&lt;BR /&gt;proc sgrender data=&amp;amp;Data1. template="panel";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%END;&lt;BR /&gt;%Mend GraphUte;&lt;BR /&gt;%GraphUte&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 21:17:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Set-the-axis-min-and-max-for-a-SAS-Chart/m-p/293580#M10346</guid>
      <dc:creator>mattmied_yahoo_com</dc:creator>
      <dc:date>2016-08-23T21:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set the axis min and max for a SAS Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Set-the-axis-min-and-max-for-a-SAS-Chart/m-p/293586#M10347</link>
      <description>&lt;PRE class="sascode"&gt;linearopts=(viewmin=0 viewmax=70
                              tickvaluelist=(0 10 20 30 40 50 60 70));&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think yaxisopts is the correct location and specified as above. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;At least for survival graphs &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&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>Tue, 23 Aug 2016 22:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Set-the-axis-min-and-max-for-a-SAS-Chart/m-p/293586#M10347</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-23T22:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set the axis min and max for a SAS Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Set-the-axis-min-and-max-for-a-SAS-Chart/m-p/293588#M10348</link>
      <description>&lt;P&gt;Reeza's suggestion will work. &amp;nbsp;With your code, you can add&amp;nbsp;&lt;SPAN&gt;TICKVALUEPRIORITY= true to force the axis to use the value range define in the tick value option.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 22:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Set-the-axis-min-and-max-for-a-SAS-Chart/m-p/293588#M10348</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-08-23T22:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set the axis min and max for a SAS Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Set-the-axis-min-and-max-for-a-SAS-Chart/m-p/293758#M10353</link>
      <description>&lt;P&gt;Thanks, that worked!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 15:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Set-the-axis-min-and-max-for-a-SAS-Chart/m-p/293758#M10353</guid>
      <dc:creator>mattmied_yahoo_com</dc:creator>
      <dc:date>2016-08-24T15:31:24Z</dc:date>
    </item>
  </channel>
</rss>

