<?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 to dynamically change the axis range of Bar-Line graph in EG in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-dynamically-change-the-axis-range-of-Bar-Line-graph-in-EG/m-p/509707#M17341</link>
    <description>&lt;P&gt;hi Ballardw,&lt;/P&gt;&lt;P&gt;Thank you for your suggestion.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Nov 2018 21:45:38 GMT</pubDate>
    <dc:creator>IntelBee</dc:creator>
    <dc:date>2018-11-01T21:45:38Z</dc:date>
    <item>
      <title>How to dynamically change the axis range of Bar-Line graph in EG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-dynamically-change-the-axis-range-of-Bar-Line-graph-in-EG/m-p/509702#M17339</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please help with the following:&amp;nbsp; How to dynamically change the axis range of Bar-Line graph in EG.&lt;/P&gt;&lt;P&gt;I have a dataset consists&amp;nbsp;of&amp;nbsp;X number of&amp;nbsp;schools and the numbers of Students and Tardy per month.&amp;nbsp; I want to use Bar-Line chart to&amp;nbsp;show the number of Students as bar and the number of Tardy as line for each month,&amp;nbsp;per&amp;nbsp;each school.&amp;nbsp;&amp;nbsp;And for each school I want to dynamically change the axis ranges (and the tick-mark) based on the highest number of Student and the highest number of Tardy so that each school's graph is tailored to its own population.&amp;nbsp; Here is my dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;School	FileDate	Student	Tardy
School_A 01/31/2018	74	7
School_A 02/28/2018	77	8
School_A 03/31/2018	70	2
School_A 04/30/2018	72	1
School_A 05/31/2018	73	2
School_A 06/30/2018	79	
School_B 01/31/2018	381	3
School_B 02/28/2018	401	10
School_B 03/31/2018	396	7
School_B 04/30/2018	413	6
School_B 05/31/2018	404	12
School_B 06/30/2018	401	7
School_C 01/31/2018	72	4
School_C 02/28/2018	64	2
School_C 03/31/2018	63	
School_C 04/30/2018	75	2
School_C 05/31/2018	75	3
School_C 06/30/2018	81	1
School_D 01/31/2018	446	12
School_D 02/28/2018	437	3
School_D 03/31/2018	460	5
School_D 04/30/2018	467	6
School_D 05/31/2018	467	8
School_D 06/30/2018	472	2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is my codes.&amp;nbsp; &amp;nbsp;I think the Axis1 and Axis3 are the one I need to make the changes but so far I haven't got it work out yet.&amp;nbsp;&amp;nbsp; Please help.&amp;nbsp; Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GBARLINE DATA=WORK.SchoolCount;
title1 "Number of Student versus Tardiness";

Axis1
	STYLE=1
	WIDTH=1
	ORDER=(0 TO 500 BY 100)
	MINOR=NONE
	LABEL=( FONT='/b'  ANGLE=90 "Number of Student");
Axis2
	STYLE=1
	WIDTH=1
	VALUE=(ANGLE=45)
	LABEL=NONE;
Axis3
	STYLE=1
	WIDTH=1
	ORDER=(0 TO 20 BY 5)
	MINOR=NONE
	LABEL=( FONT='/b'  ANGLE=90 "Number of Tardy") ;

	BAR	 FileDate/
	SUMVAR=Student
	CLIPREF
	SPACE=10
FRAME	DISCRETE
	TYPE=SUM
	COUTLINE=SAME
	RAXIS=AXIS1
	MAXIS=AXIS2
	LEGEND=LEGEND2;
	PLOT / SUMVAR=Tardy
	TYPE=SUM
	CLIPREF
	AXIS=AXIS3
	LEGEND=LEGEND1
	LREF=1
	CREF=BLACK
	AUTOREF;
	FORMAT FileDate MONYY6.;
	BY School;
	FORMAT FileDate MONYY6.;
RUN; QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Nov 2018 21:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-dynamically-change-the-axis-range-of-Bar-Line-graph-in-EG/m-p/509702#M17339</guid>
      <dc:creator>IntelBee</dc:creator>
      <dc:date>2018-11-01T21:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the axis range of Bar-Line graph in EG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-dynamically-change-the-axis-range-of-Bar-Line-graph-in-EG/m-p/509706#M17340</link>
      <description>&lt;P&gt;Easiest to make that dynamic would be to remove the ORDER clause in the Axis statements.&lt;/P&gt;
&lt;P&gt;You might have ticks that you don't quite want but the range will adjust based on the data.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 21:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-dynamically-change-the-axis-range-of-Bar-Line-graph-in-EG/m-p/509706#M17340</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-01T21:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the axis range of Bar-Line graph in EG</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-dynamically-change-the-axis-range-of-Bar-Line-graph-in-EG/m-p/509707#M17341</link>
      <description>&lt;P&gt;hi Ballardw,&lt;/P&gt;&lt;P&gt;Thank you for your suggestion.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 21:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-dynamically-change-the-axis-range-of-Bar-Line-graph-in-EG/m-p/509707#M17341</guid>
      <dc:creator>IntelBee</dc:creator>
      <dc:date>2018-11-01T21:45:38Z</dc:date>
    </item>
  </channel>
</rss>

