<?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 How to set custom Y Axis interval in SAS VA Graph Builder? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-set-custom-Y-Axis-interval-in-SAS-VA-Graph-Builder/m-p/572987#M12749</link>
    <description>&lt;P&gt;I want to create customized interval for the Y axis scale on my line chart. Under the option of graph builder, I can choose the Y axis range. However, it just offered the minimum and maximum. I want to disable the auto scale of Y axis and set the customized interval of the Y axis scale. For example, it auto scale the interval of Y axis is 5...10...15...20...etc. I want to change the interval to be a 2..4...6..8...10...etc. How can I do it? Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2019 03:11:00 GMT</pubDate>
    <dc:creator>MoMoMay</dc:creator>
    <dc:date>2019-07-12T03:11:00Z</dc:date>
    <item>
      <title>How to set custom Y Axis interval in SAS VA Graph Builder?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-set-custom-Y-Axis-interval-in-SAS-VA-Graph-Builder/m-p/572987#M12749</link>
      <description>&lt;P&gt;I want to create customized interval for the Y axis scale on my line chart. Under the option of graph builder, I can choose the Y axis range. However, it just offered the minimum and maximum. I want to disable the auto scale of Y axis and set the customized interval of the Y axis scale. For example, it auto scale the interval of Y axis is 5...10...15...20...etc. I want to change the interval to be a 2..4...6..8...10...etc. How can I do it? Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 03:11:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-set-custom-Y-Axis-interval-in-SAS-VA-Graph-Builder/m-p/572987#M12749</guid>
      <dc:creator>MoMoMay</dc:creator>
      <dc:date>2019-07-12T03:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to set custom Y Axis interval in SAS VA Graph Builder?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-set-custom-Y-Axis-interval-in-SAS-VA-Graph-Builder/m-p/808147#M15978</link>
      <description>&lt;P&gt;I need help with this too!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 08:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-set-custom-Y-Axis-interval-in-SAS-VA-Graph-Builder/m-p/808147#M15978</guid>
      <dc:creator>z525541</dc:creator>
      <dc:date>2022-04-16T08:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to set custom Y Axis interval in SAS VA Graph Builder?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-set-custom-Y-Axis-interval-in-SAS-VA-Graph-Builder/m-p/808573#M15982</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70579iBA830ACD04F4C9B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic.png" alt="pic.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70580iF0EAF9D032329DF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic1.png" alt="pic1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can achieve this with user-defined formats.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First run the code, then enter manage environment with admin rights.&lt;/P&gt;
&lt;P&gt;assume super-user role and create empty format lib, copy the code-created format to it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;call the format when promoting the table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;now in VA you can see the correct behaviour of the variable (according to the format).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc casutil;
deletesource casdata="myFmtLib.sashdat" incaslib="public";
run;

proc format library=work.formats casfmtlib="myFmtLib";
value mmonth
0-6 = "0"
6-18="12"
18-30 = "24"
30-42="36"
42-54 = "48"
54-66="60"
66-78 = "72"
78-90="84"
other="&amp;gt;90"
;
run;


cas mysession savefmtlib fmtlibname=myFmtLib         /* 5 */
   table="myFmtLib.sashdat" caslib=PUBLIC replace;

cas mysession addfmtlib fmtlibname=myFmtLib     /* 2 */
   table="myFmtLib.sashdat" caslib=PUBLIC replacefmtlib;

cas mysession promotefmtlib fmtlibname=myFmtLib REPLACE;

data public.rema1(promote=yes);
set casuser.rema;
FORMAT f_meses_efectivos mmonth_copy.;
f_meses_efectivos=meses_efectivos;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 14:52:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-set-custom-Y-Axis-interval-in-SAS-VA-Graph-Builder/m-p/808573#M15982</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2022-04-19T14:52:12Z</dc:date>
    </item>
  </channel>
</rss>

