@danschikore @jthi
I modified the code- added calling function for clear. If I set the data filter to invisible it doesn't filter the rows. I'm not sure what's wrong . I have also attached the data table
Here's what it looks like
Names Default To Here( 1 );
dt = Current Data Table();
New Window( "Graph with filter",
modal,
Data Filter Context Box(
H List Box(
V List Box(
Text Box( "Select Bins:" ),
Radio Box(
{"1", "2", "N", "A","B","All"},
<<SetFunction(
Function( {neb},
Eval( Eval Expr( ldf << (Filter Column( :Bins ) << Where( :Bins == (Expr( neb << Get selected() )) )) ) );
sel = neb << get selected;
Match( sel,
"All",
ldf << clear;
);
)
)
),
lb = Outline Box( "", ldf = dt << Data filter( "Local", invisible, Add Filter( columns( :Bins ), Where( :Bins == 1 ) ) ) ),
<<Padding( Left( 20 ), Right( 20 ), Top( 20 ), Bottom( 20 ) )
),
gb = Graph Builder(
Size( 1000, 592 ),
Show Control Panel( 0 ),
Show Footer( 0 ),
Variables( X( :X coord ), Y( :Y coord ), Group X( :Bins ), Color( :Bins ) ),
Elements( Points( X, Y, Legend( 4 ) ) ),
SendToReport(
Dispatch( {}, "Graph Builder", OutlineBox, {Set Title( "Wafer Map" ), Image Export Display( Normal )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "Bins vs. coord" )} )
)
);
gbr = Report( gb );
gbr[axisbox( 2 )] << Reversed Scale( 1 );
)
)
);