Ok, here is the script that I used to test legends and filters using Graph Builder, with JMP 14. In this example, the legend updates each time the filter changes.
Open("$SAMPLE_DATA/Big Class.jmp");
Graph Builder(
Show Control Panel( 0 ),
Variables( X( :sex ), Y( :height ), Color( :weight ) ),
Elements( Points( X, Y, Legend( 14 ) ) ),
Local Data Filter(
Add Filter(
columns( :age ),
Where( :age == 12 ),
Display( :age, Size( 160, 90 ), List Display )
)
)
);
The next thing that comes to mind is that the data table may contain a column property that specifies gradient limits:
Do you have a sample table with script that you can provide that demonstrates the issue?