<?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: New to JMP Scripting - want to know how to set a loop for Graph Builder Dispatch/ScaleBox in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/New-to-JMP-Scripting-want-to-know-how-to-set-a-loop-for-Graph/m-p/49472#M28131</link>
    <description>&lt;P&gt;Give this a try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here( 1 );

dt = Open( "$Sample_data/Australian Tourism.jmp" );

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 457, 6762 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Date ),
		Y( :Persons Employed, Side( "Right" ) ),
		Y( :Name( "Guest arrivals ('000)" ), Position( 1 ), Side( "Right" ) ),
		Y( :Rooms, Position( 1 ) ),
		Page( :Year )
	),
	Elements(
		Points( X, Y( 3 ), Legend( 71 ) ),
		Smoother( X, Y( 3 ), Legend( 72 ) ),
		Points( X, Y( 1 ), Y( 2 ), Legend( 73 ) ),
		Smoother( X, Y( 1 ), Y( 2 ), Legend( 74 ) )
	)
);

For( i=2, i&amp;lt;=15, i++,
	gb &amp;lt;&amp;lt; SendToReport(
		Dispatch(
			{},
			"Date",
			ScaleBox( i ),
			{Min( 2934921600 ), Max( 3597609600 ), Interval( "Year" ), Inc( 1 ),
			Minor Ticks( 3 ), Label Row( Show Major Grid( 1 ) )}
		),
		Dispatch(
			{},
			"Rooms",
			ScaleBox( i ),
			{Min( 70000 ), Max( 73000 ), Inc( 500 ),
			Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"Persons Employed",
			ScaleBox( i ),
			{Min( -60000 ), Max( 80000 ), Inc( 10000 ),
			Minor Ticks( 0 )}
		),
		Dispatch( {}, "X title", Text Edit Box( i - 1 ), {Set Text( "X Axis" )} ),
		Dispatch( {}, "Y title", Text Edit Box( i - 1 ), {Set Text( "Left Y Axis" )} ),
		Dispatch( {}, "Y r title", Text Edit Box( i -1  ), {Set Text( "Right Y Axis" )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 10 Jan 2018 04:01:14 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2018-01-10T04:01:14Z</dc:date>
    <item>
      <title>New to JMP Scripting - want to know how to set a loop for Graph Builder Dispatch/ScaleBox</title>
      <link>https://community.jmp.com/t5/Discussions/New-to-JMP-Scripting-want-to-know-how-to-set-a-loop-for-Graph/m-p/49438#M28115</link>
      <description>&lt;P&gt;Hello, I am attempting to add variables to my Graph Builder script so that I can loop through a number of charts and format them all the same.&lt;/P&gt;&lt;P&gt;Can anyone help me with setting the variables correcltly? Not sure where I am going wrong and cannot find a similar example online. Appreciate any help you can provide.&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;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 1081, 4190 ),
	Variables(
		X( :StartTime ),
		Y( :Chamber Opened RFH, Side( "Right" ) ),
		Y( :DP RFH, Position( 1 ), Side( "Right" ) ),
		Y( :FR RFH, Position( 1 ), Side( "Right" ) ),
		Y( :Upper Wall RFH, Position( 1 ), Side( "Right" ) ),
		Y( :Wet Clean RFH, Position( 1 ), Side( "Right" ) ),
		Y( :Name( "Step_Duration-19StepValue" ), Position( 1 ) ),
		Page( :Tool_Chamber ID )
	),
	
	Elements(Points( X, Y( 6 ), Legend( 5 ) ),Line( X, Y( 1 ), Y( 2 ), Y( 3 ), Y( 4 ), Y( 5 ), Legend( 7 ) )),
	SendToReport(
		

		For (i=2, i&amp;lt;=11, i++,
			
			Dispatch({},"StartTime",ScaleBox( Expr(i) ),{Format( "m/d/y", 10 ), Min( 3586118400 ), Max( 3597955200 ),
				Interval( "Month" ), Inc( 1 ), Minor Ticks( 0 ),Label Row( {Set Font Size( 14 ), Set Font Style( "Bold" )} )}),
			Dispatch({},"Step_Duration-19StepValue",ScaleBox( Expr(i) ),{Min( 40 ), Max( 50 ), Inc( 0.5 ), Minor Ticks( 1 ),
			Add Ref Line( 48, "Dashed", "Medium Dark Red", "Max (48sec)", 2 ),Label Row( {Set Font Size( 14 ), Set Font Style( "Bold" )} )}	),
			);
		
		
		For (i=1, i&amp;lt;=10, i++,
			Dispatch({},"Chamber Opened RFH",ScaleBox( Expr(j) ),{Format( "Fixed Dec", 12, 0 ), Min( 0 ), Max( 610.353515625 ), Inc( 50 ),Minor Ticks( 0 ), Label Row({Set Font Size( 14 ), Set Font Style( "Bold" )})}),
			Dispatch( {}, "X title", Text Edit Box( Expr(j) ), {Set Text( "" )} ),
			Dispatch( {}, "Y title", Text Edit Box( Expr(j) ), {Set Font Size( 14 ), Set Font Style( "Bold" ), Set Text( "SL Step 19 EPD (sec)" )} ),
			Dispatch( {}, "Y r title", Text Edit Box( Expr(j) ), {Set Font Size( 14 ), Set Font Style( "Bold" ), Set Text( "RF Hrs" )} ),
			);
		
		Dispatch( {}, "400", LegendBox,	{Legend Position( {5, [0], 7, [1, 2, 3, 4, 5]} ), Position( {0, 1, 2, 3, 4, 5} )})
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 19:43:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/New-to-JMP-Scripting-want-to-know-how-to-set-a-loop-for-Graph/m-p/49438#M28115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T19:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: New to JMP Scripting - want to know how to set a loop for Graph Builder Dispatch/ScaleBox</title>
      <link>https://community.jmp.com/t5/Discussions/New-to-JMP-Scripting-want-to-know-how-to-set-a-loop-for-Graph/m-p/49441#M28116</link>
      <description>&lt;P&gt;First thing I notice is that you&amp;nbsp;name the indexing variable "i" in both loops, but refer to an index variable "j" in the second.&lt;/P&gt;&lt;P&gt;I'm guessing you can get what you need without scripting by formatting everything to your liking&amp;nbsp;&lt;EM&gt;before&lt;/EM&gt; dropping :Tool_Chamber ID into the Page dropzone.&amp;nbsp; That should propogate the original formatting to each page.&lt;/P&gt;&lt;P&gt;It's a little difficult to diagnose the issue without the data table you are using.&amp;nbsp; The bottom portion of the Graph Builder script is a little hard to follow.&amp;nbsp; If my advice doesn't help you, can you post an example of what you want to do with one of JMP's sample data sets or a dummy one that you create?&amp;nbsp; Also, the log would be helpful (Ctrl+Shift+L or View &amp;gt; Log).&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 20:30:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/New-to-JMP-Scripting-want-to-know-how-to-set-a-loop-for-Graph/m-p/49441#M28116</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2018-01-09T20:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: New to JMP Scripting - want to know how to set a loop for Graph Builder Dispatch/ScaleBox</title>
      <link>https://community.jmp.com/t5/Discussions/New-to-JMP-Scripting-want-to-know-how-to-set-a-loop-for-Graph/m-p/49442#M28117</link>
      <description>Hello,&lt;BR /&gt;Yes, i noticed the i vs j variable but this doesn't help how the graphs are generated. As written, I only get formatting for part of one plot. All the others remain formatted. Since I have many plots to generate (in a similar format) with varying information needed to for each plot, understanding how the variables work is needed to complete my goals. I appreciate your suggestion, but I will need a working solution for incorporating a loop into the formatting process.&lt;BR /&gt;Thank you for your feedback :)&lt;/img&gt;</description>
      <pubDate>Tue, 09 Jan 2018 20:43:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/New-to-JMP-Scripting-want-to-know-how-to-set-a-loop-for-Graph/m-p/49442#M28117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T20:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: New to JMP Scripting - want to know how to set a loop for Graph Builder Dispatch/ScaleBox</title>
      <link>https://community.jmp.com/t5/Discussions/New-to-JMP-Scripting-want-to-know-how-to-set-a-loop-for-Graph/m-p/49464#M28127</link>
      <description>&lt;P&gt;Here are some additional iterations I have tried...&amp;nbsp;Some are commented out.&amp;nbsp;None of them will&amp;nbsp;work... ugh...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dt = currentdatatable();&lt;BR /&gt;&lt;BR /&gt;Graph Builder(&lt;BR /&gt; Size( 1081, 4190 ),&lt;BR /&gt; Variables(&lt;BR /&gt; X( :StartTime ),&lt;BR /&gt; Y( :Chamber Opened RFH, Side( "Right" ) ),&lt;BR /&gt; Y( :DP RFH, Position( 1 ), Side( "Right" ) ),&lt;BR /&gt; Y( :FR RFH, Position( 1 ), Side( "Right" ) ),&lt;BR /&gt; Y( :Upper Wall RFH, Position( 1 ), Side( "Right" ) ),&lt;BR /&gt; Y( :Wet Clean RFH, Position( 1 ), Side( "Right" ) ),&lt;BR /&gt; Y( :Name( "Step_Duration-19StepValue" ), Position( 1 ) ),&lt;BR /&gt; Page( :Tool_Chamber ID )&lt;BR /&gt; ),&lt;BR /&gt; &lt;BR /&gt; Elements(Points( X, Y( 6 ), Legend( 5 ) ),Line( X, Y( 1 ), Y( 2 ), Y( 3 ), Y( 4 ), Y( 5 ), Legend( 7 ) )),&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; List= {"1","2","3","4","5","6","7","8","9","10"};&lt;BR /&gt; nList = N Items(List);&lt;BR /&gt; &lt;BR /&gt; For (i=1,i &amp;lt;= nList, i++,&lt;BR /&gt; &lt;BR /&gt; gb= Expr( SendToReport(&lt;BR /&gt; Dispatch({},"StartTime",ScaleBox( List[i]+1 ),{Format( "m/d/y", 10 ), Min( 3586118400 ), Max( 3597955200 ),&lt;BR /&gt; Interval( "Month" ), Inc( 1 ), Minor Ticks( 0 ),Label Row( {Set Font Size( 14 ), Set Font Style( "Bold" )} )}),&lt;BR /&gt; Dispatch({},"Step_Duration-19StepValue",ScaleBox( List[i]+1 ),{Min( 40 ), Max( 50 ), Inc( 0.5 ), Minor Ticks( 1 ),&lt;BR /&gt; Add Ref Line( 48, "Dashed", "Medium Dark Red", "Max (48sec)", 2 ),Label Row( {Set Font Size( 14 ), Set Font Style( "Bold" )} )} ),&lt;BR /&gt; Dispatch({},"Chamber Opened RFH",ScaleBox( List[i] ),{Format( "Fixed Dec", 12, 0 ), Min( 0 ), Max( 610.353515625 ), Inc( 50 ),Minor Ticks( 0 ), Label Row({Set Font Size( 14 ), Set Font Style( "Bold" )})}),&lt;BR /&gt; Dispatch( {}, "X title", Text Edit Box( List[i] ), {Set Text( "" )} ),&lt;BR /&gt; Dispatch( {}, "Y title", Text Edit Box( List[i] ), {Set Font Size( 14 ), Set Font Style( "Bold" ), Set Text( "SL Step 19 EPD (sec)" )} ),&lt;BR /&gt; Dispatch( {}, "Y r title", Text Edit Box( List[i] ), {Set Font Size( 14 ), Set Font Style( "Bold" ), Set Text( "RF Hrs" )} ),&lt;BR /&gt; ) &lt;BR /&gt; ); &lt;BR /&gt; Eval(Substitute(Name Expr(gb),Expr(List[i]),List[i]));&lt;BR /&gt; );&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; /*List= {"1","2","3","4","5","6","7","8","9","10"};&lt;BR /&gt; nList = N Items(List);&lt;BR /&gt; &lt;BR /&gt; For (i=1,i &amp;lt;= nList, i++,&lt;BR /&gt; &lt;BR /&gt; gb= dt &amp;lt;&amp;lt; SendToReport(&lt;BR /&gt; Dispatch({},"StartTime",ScaleBox( List[i]+1 ),{Format( "m/d/y", 10 ), Min( 3586118400 ), Max( 3597955200 ),&lt;BR /&gt; Interval( "Month" ), Inc( 1 ), Minor Ticks( 0 ),Label Row( {Set Font Size( 14 ), Set Font Style( "Bold" )} )}),&lt;BR /&gt; Dispatch({},"Step_Duration-19StepValue",ScaleBox( List[i]+1 ),{Min( 40 ), Max( 50 ), Inc( 0.5 ), Minor Ticks( 1 ),&lt;BR /&gt; Add Ref Line( 48, "Dashed", "Medium Dark Red", "Max (48sec)", 2 ),Label Row( {Set Font Size( 14 ), Set Font Style( "Bold" )} )} ),&lt;BR /&gt; Dispatch({},"Chamber Opened RFH",ScaleBox( List[i] ),{Format( "Fixed Dec", 12, 0 ), Min( 0 ), Max( 610.353515625 ), Inc( 50 ),Minor Ticks( 0 ), Label Row({Set Font Size( 14 ), Set Font Style( "Bold" )})}),&lt;BR /&gt; Dispatch( {}, "X title", Text Edit Box( List[i] ), {Set Text( "" )} ),&lt;BR /&gt; Dispatch( {}, "Y title", Text Edit Box( List[i] ), {Set Font Size( 14 ), Set Font Style( "Bold" ), Set Text( "SL Step 19 EPD (sec)" )} ),&lt;BR /&gt; Dispatch( {}, "Y r title", Text Edit Box( List[i] ), {Set Font Size( 14 ), Set Font Style( "Bold" ), Set Text( "RF Hrs" )} ),);&lt;BR /&gt; &lt;BR /&gt; Eval(Eval Expr(gb));&lt;BR /&gt; );*/&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; /*For (i=1, i&amp;lt;=10, i++,&lt;BR /&gt; &lt;BR /&gt; gb= dt &amp;lt;&amp;lt; SendToReport(&lt;BR /&gt; Dispatch({},"StartTime",ScaleBox( eval(i)+1 ),{Format( "m/d/y", 10 ), Min( 3586118400 ), Max( 3597955200 ),&lt;BR /&gt; Interval( "Month" ), Inc( 1 ), Minor Ticks( 0 ),Label Row( {Set Font Size( 14 ), Set Font Style( "Bold" )} )}),&lt;BR /&gt; Dispatch({},"Step_Duration-19StepValue",ScaleBox( eval(i)+1 ),{Min( 40 ), Max( 50 ), Inc( 0.5 ), Minor Ticks( 1 ),&lt;BR /&gt; Add Ref Line( 48, "Dashed", "Medium Dark Red", "Max (48sec)", 2 ),Label Row( {Set Font Size( 14 ), Set Font Style( "Bold" )} )} ),&lt;BR /&gt; Dispatch({},"Chamber Opened RFH",ScaleBox( eval(i) ),{Format( "Fixed Dec", 12, 0 ), Min( 0 ), Max( 610.353515625 ), Inc( 50 ),Minor Ticks( 0 ), Label Row({Set Font Size( 14 ), Set Font Style( "Bold" )})}),&lt;BR /&gt; Dispatch( {}, "X title", Text Edit Box( eval(i) ), {Set Text( "" )} ),&lt;BR /&gt; Dispatch( {}, "Y title", Text Edit Box( eval(i) ), {Set Font Size( 14 ), Set Font Style( "Bold" ), Set Text( "SL Step 19 EPD (sec)" )} ),&lt;BR /&gt; Dispatch( {}, "Y r title", Text Edit Box( eval(i) ), {Set Font Size( 14 ), Set Font Style( "Bold" ), Set Text( "RF Hrs" )} ),);&lt;BR /&gt; &lt;BR /&gt; Eval(Eval Expr(gb));&lt;BR /&gt; );*/&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; /*List= {"1","2","3","4","5","6","7","8","9","10"};&lt;BR /&gt; i=1;&lt;BR /&gt; gb= Expr( SendToReport(&lt;BR /&gt; Dispatch({},"StartTime",ScaleBox( List[i]+1 ),{Format( "m/d/y", 10 ), Min( 3586118400 ), Max( 3597955200 ),&lt;BR /&gt; Interval( "Month" ), Inc( 1 ), Minor Ticks( 0 ),Label Row( {Set Font Size( 14 ), Set Font Style( "Bold" )} )}),&lt;BR /&gt; Dispatch({},"Step_Duration-19StepValue",ScaleBox( List[i]+1 ),{Min( 40 ), Max( 50 ), Inc( 0.5 ), Minor Ticks( 1 ),&lt;BR /&gt; Add Ref Line( 48, "Dashed", "Medium Dark Red", "Max (48sec)", 2 ),Label Row( {Set Font Size( 14 ), Set Font Style( "Bold" )} )} ),&lt;BR /&gt; Dispatch({},"Chamber Opened RFH",ScaleBox( List[i] ),{Format( "Fixed Dec", 12, 0 ), Min( 0 ), Max( 610.353515625 ), Inc( 50 ),Minor Ticks( 0 ), Label Row({Set Font Size( 14 ), Set Font Style( "Bold" )})}),&lt;BR /&gt; Dispatch( {}, "X title", Text Edit Box( List[i] ), {Set Text( "" )} ),&lt;BR /&gt; Dispatch( {}, "Y title", Text Edit Box( List[i] ), {Set Font Size( 14 ), Set Font Style( "Bold" ), Set Text( "SL Step 19 EPD (sec)" )} ),&lt;BR /&gt; Dispatch( {}, "Y r title", Text Edit Box( List[i] ), {Set Font Size( 14 ), Set Font Style( "Bold" ), Set Text( "RF Hrs" )} ),&lt;BR /&gt; ) &lt;BR /&gt; ); &lt;BR /&gt; Eval(Substitute(Name Expr(gb),Expr(List[i]),List[i]));*/&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; /*Expr(&lt;BR /&gt; gb= dt &amp;lt;&amp;lt; SendToReport(&lt;BR /&gt; Dispatch({},"StartTime",ScaleBox( eval(i)+1 ),{Format( "m/d/y", 10 ), Min( 3586118400 ), Max( 3597955200 ),&lt;BR /&gt; Interval( "Month" ), Inc( 1 ), Minor Ticks( 0 ),Label Row( {Set Font Size( 14 ), Set Font Style( "Bold" )} )}),&lt;BR /&gt; Dispatch({},"Step_Duration-19StepValue",ScaleBox( eval(i)+1 ),{Min( 40 ), Max( 50 ), Inc( 0.5 ), Minor Ticks( 1 ),&lt;BR /&gt; Add Ref Line( 48, "Dashed", "Medium Dark Red", "Max (48sec)", 2 ),Label Row( {Set Font Size( 14 ), Set Font Style( "Bold" )} )} ),&lt;BR /&gt; Dispatch({},"Chamber Opened RFH",ScaleBox( eval(i) ),{Format( "Fixed Dec", 12, 0 ), Min( 0 ), Max( 610.353515625 ), Inc( 50 ),Minor Ticks( 0 ), Label Row({Set Font Size( 14 ), Set Font Style( "Bold" )})}),&lt;BR /&gt; Dispatch( {}, "X title", Text Edit Box( eval(i) ), {Set Text( "" )} ),&lt;BR /&gt; Dispatch( {}, "Y title", Text Edit Box( eval(i) ), {Set Font Size( 14 ), Set Font Style( "Bold" ), Set Text( "SL Step 19 EPD (sec)" )} ),&lt;BR /&gt; Dispatch( {}, "Y r title", Text Edit Box( eval(i) ), {Set Font Size( 14 ), Set Font Style( "Bold" ), Set Text( "RF Hrs" )} ),)&lt;BR /&gt; );&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; For (i=1, i&amp;lt;=10, i++,&lt;BR /&gt; Wait(1);&lt;BR /&gt; //Eval(Eval Expr(gb));&lt;BR /&gt; &lt;BR /&gt; Eval(substitute(nameexpr(gb),Expr(gb),i));&lt;BR /&gt; &lt;BR /&gt; );*/&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Dispatch( {}, "400", LegendBox, {Legend Position( {5, [0], 7, [1, 2, 3, 4, 5]} ), Position( {0, 1, 2, 3, 4, 5} )})&lt;BR /&gt;);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 02:08:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/New-to-JMP-Scripting-want-to-know-how-to-set-a-loop-for-Graph/m-p/49464#M28127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-10T02:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: New to JMP Scripting - want to know how to set a loop for Graph Builder Dispatch/ScaleBox</title>
      <link>https://community.jmp.com/t5/Discussions/New-to-JMP-Scripting-want-to-know-how-to-set-a-loop-for-Graph/m-p/49472#M28131</link>
      <description>&lt;P&gt;Give this a try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here( 1 );

dt = Open( "$Sample_data/Australian Tourism.jmp" );

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 457, 6762 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Date ),
		Y( :Persons Employed, Side( "Right" ) ),
		Y( :Name( "Guest arrivals ('000)" ), Position( 1 ), Side( "Right" ) ),
		Y( :Rooms, Position( 1 ) ),
		Page( :Year )
	),
	Elements(
		Points( X, Y( 3 ), Legend( 71 ) ),
		Smoother( X, Y( 3 ), Legend( 72 ) ),
		Points( X, Y( 1 ), Y( 2 ), Legend( 73 ) ),
		Smoother( X, Y( 1 ), Y( 2 ), Legend( 74 ) )
	)
);

For( i=2, i&amp;lt;=15, i++,
	gb &amp;lt;&amp;lt; SendToReport(
		Dispatch(
			{},
			"Date",
			ScaleBox( i ),
			{Min( 2934921600 ), Max( 3597609600 ), Interval( "Year" ), Inc( 1 ),
			Minor Ticks( 3 ), Label Row( Show Major Grid( 1 ) )}
		),
		Dispatch(
			{},
			"Rooms",
			ScaleBox( i ),
			{Min( 70000 ), Max( 73000 ), Inc( 500 ),
			Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"Persons Employed",
			ScaleBox( i ),
			{Min( -60000 ), Max( 80000 ), Inc( 10000 ),
			Minor Ticks( 0 )}
		),
		Dispatch( {}, "X title", Text Edit Box( i - 1 ), {Set Text( "X Axis" )} ),
		Dispatch( {}, "Y title", Text Edit Box( i - 1 ), {Set Text( "Left Y Axis" )} ),
		Dispatch( {}, "Y r title", Text Edit Box( i -1  ), {Set Text( "Right Y Axis" )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jan 2018 04:01:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/New-to-JMP-Scripting-want-to-know-how-to-set-a-loop-for-Graph/m-p/49472#M28131</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2018-01-10T04:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: New to JMP Scripting - want to know how to set a loop for Graph Builder Dispatch/ScaleBox</title>
      <link>https://community.jmp.com/t5/Discussions/New-to-JMP-Scripting-want-to-know-how-to-set-a-loop-for-Graph/m-p/49475#M28133</link>
      <description>boom town! Kudos to you :)&lt;/img&gt;</description>
      <pubDate>Wed, 10 Jan 2018 04:46:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/New-to-JMP-Scripting-want-to-know-how-to-set-a-loop-for-Graph/m-p/49475#M28133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-10T04:46:29Z</dc:date>
    </item>
  </channel>
</rss>

