Below is a piece of JSL that used a Data Filter, not a Local Data Filter to do what you want. A Data filter Excludes and Hides the rows in the data table, which are easily picked up in the Add Graphics Script. Using a Local Data Filter would require far more complexity. See if this method may work for you
Names Default To Here( 1 );
dt = Current Data Table();
New Window( "Filtered Arrows",
Lineup Box( N Col( 2 ),
dt << Data Filter(
Location( {780, 189} ),
Width( 197 ),
Mode( Show( 1 ), Include( 1 ) ),
Add Filter( columns( :Speed ), Display( :Speed, Size( 185, 20 ), Height( 50 ) ) )
),
dt << Bivariate(
Y( :Lat1 ),
X( :Lon1 ),
SendToReport(
Dispatch(
{},
"Bivar Plot",
FrameBox,
{Frame Size( 501, 429 ), Add Graphics Script(
2,
Description( "Script" ),
Pen Size( 2 );
For Each Row(
If( Excluded( Row State( Row() ) ) == 0,
Arrow( {:lon1, :lat1}, {:lon2, :lat2} )
)
);
), Grid Line Order( 3 ), Reference Line Order( 1 )}
)
)
)
)
);
Jim