I couldn't understand why this script didn't work (local filter & .html graph not interactive).
I have another interactive graph build using similar logic and didn't have any issue.
I added the top report too.
Any idea?
//create Graph Builder
Names Default To Here( 1 );
dt3 = Data Table( "JoinT" );
gb = dt3 << Graph Builder(
Size( 605, 3451 ),
Show Control Panel( 0 ),
Lock Scales( 1 ),
Link Page Axes( "X and Y" ),
Variables(
X( :In Time ),
Y( :Yield Exclude dummy ),
Page( :Process Oper ),
Overlay( :Process Mach No )
),
Elements( Points( X, Y, Legend( 9 ) ) ),
Local Data Filter(
Add Filter(
columns(
Transform Column(
"Concatenate[Process Oper]",
Character,
Formula( Concat( :Process Oper ) )
),
:Machine Type,
:PackageFamily,
:Machine No,
:Recipe,
:Process Mach No
),
Display(
Transform Column(
"Concatenate[Process Oper]",
Character,
Formula( Concat( :Process Oper ) )
),
"Single Category Display"
),
Display( :PackageFamily, "Single Category Display" ),
Display(
:Machine No,
"Single Category Display",
Find( Set Text( "" ) )
),
Display( :Recipe, "Single Category Display", Find( Set Text( "" ) ) ),
Display(
:Process Mach No,
"Single Category Display",
Find( Set Text( "" ) )
),
Order By Count(
Transform Column(
"Concatenate[Process Oper]",
Character,
Formula( Concat( :Process Oper ) )
)
)
)
),
SendToReport(
Dispatch(
{},
"In Time",
ScaleBox,
{Format( "d/m/y", 10 ), Min( 3723595037 ), Max( 3730267481.28 ),
Interval( "Day" ), Inc( 1 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"In Time",
ScaleBox( 2 ),
{Format( "d/m/y", 10 ), Min( 3723840000 ), Max( 3730079028.96 ),
Interval( "Day" ), Inc( 10 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"In Time",
ScaleBox( 3 ),
{Format( "d/m/y", 10 ), Min( 3723796743.08 ), Max( 3725242379.92 ),
Interval( "Day" ), Inc( 2 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"In Time",
ScaleBox( 4 ),
{Format( "d/m/y", 10 ), Min( 3723840000 ), Max( 3730002981.72 ),
Interval( "Day" ), Inc( 10 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"In Time",
ScaleBox( 5 ),
{Format( "d/m/y", 10 ), Min( 3723840000 ), Max( 3730063004.8 ),
Interval( "Day" ), Inc( 10 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"In Time",
ScaleBox( 6 ),
{Format( "d/m/y", 10 ), Min( 3723840000 ), Max( 3730200253.12 ),
Interval( "Day" ), Inc( 10 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"In Time",
ScaleBox( 7 ),
{Format( "d/m/y", 10 ), Min( 3723840000 ), Max( 3730020656.4 ),
Interval( "Day" ), Inc( 10 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"In Time",
ScaleBox( 8 ),
{Format( "d/m/y", 10 ), Min( 3723595299.52 ), Max( 3730267481.28 ),
Interval( "Day" ), Inc( 10 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"Yield Exclude dummy",
ScaleBox,
{Format( "Fixed Dec", 15, 2 ), Min( 0 ), Max( 105 ), Inc( 10 ),
Minor Ticks( 1 ), Add Ref Line(
98,
"Solid",
"Medium Dark Red",
"TargetYield=98.00%",
2
)}
),
Dispatch(
{},
"Yield Exclude dummy",
ScaleBox( 2 ),
{Format( "Fixed Dec", 15, 0 ), Min( 13.63 ), Max( 102.111427606729 ),
Inc( 10 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"Yield Exclude dummy",
ScaleBox( 3 ),
{Format( "Fixed Dec", 15, 1 ), Min( 97.970970312416 ),
Max( 99.8921310582744 ), Inc( 0.5 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"Yield Exclude dummy",
ScaleBox( 4 ),
{Format( "Fixed Dec", 15, 1 ), Min( 95.8240945419339 ),
Max( 100.016768985686 ), Inc( 0.5 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"Yield Exclude dummy",
ScaleBox( 5 ),
{Format( "Fixed Dec", 15, 1 ), Min( 95.8220034130674 ),
Max( 100.057545297737 ), Inc( 0.5 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"Yield Exclude dummy",
ScaleBox( 6 ),
{Format( "Fixed Dec", 15, 0 ), Min( 4.52872 ), Max( 103.59928 ),
Inc( 10 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"Yield Exclude dummy",
ScaleBox( 7 ),
{Format( "Fixed Dec", 15, 0 ), Min( 43.0752 ), Max( 101.7948 ),
Inc( 10 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"Yield Exclude dummy",
ScaleBox( 8 ),
{Format( "Fixed Dec", 15, 0 ), Min( 4.52792 ), Max( 103.62008 ),
Inc( 10 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "AVI Yield Exclude dummy vs. In Time (Process before AVI)" )}
)
)
);
gb << Bring Window to Front;
//Get the container of the platform
tr = gb << Top Report;
tr << Save Interactive HTML("C:\Users\jmpuser2020c\Desktop\Manufacturing Yield Dashboard\AVI\AVIAutoReport\ProcessBeforeMCAVIYield.html");