Below is some illustrative code that displays a graph with a local data filter.
namesDefaultToHere(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
graphContent = VListBox(
dt << Bivariate(
Y(:weight),
X(:height)
)
);
NewWindow("Test",
Data Filter Context Box(
BorderBox(top(20),bottom(20),left(20),right(20),
HListBox(
// local data filter
::df = dt << Data Filter( local,
AddFilter(
columns(:sex),
display(:sex,"List Display")
)
),
// some content
graphContent
)
)
)
);
// define event handler for data filter
::rs = ::df << makeFilterChangeHandler(
function({x},
show("data filter event handler");
show(hptime());
)
);
Making selections to the data filter triggers the event handler, as expected.
However, the event handler also gets triggered just by hovering over data points in the graph. Does anyone have any thoughts on why that would happen?
-Dave