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.
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.
Thanks!
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<=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<=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} )})
)
);