I am new to JMP and I came across the List Box which allows us to filter data based on the selection, but it is currently not working for me. I am getting the list box to display, but it doesn't change anything in the graph. I would expect the time to change based on arrival or departure.Any suggestions?
dt = Open("$sample_data/Air Traffic.jmp");
m_name = dt:Event << get values << As List(m_name);
gb_default = Expr(
Graph Builder(
Size(550, 372),
Show Control Panel(0),
Fit to Window("Off"),
Variables(X(:Airline), Y(:Original Time)),
Elements(Box Plot(X, Y, Legend(19)))
);
);
nw = New Window("Traffic Monitor ",
gb = gb_default;
lbcontent = Lineup Box(N Col(10),
Spacer Box(Size(1, 0)),
Spacer Box(Size(1, 0)),
Spacer Box(Size(1, 0)),
Text Box("Airline: ", <<Set Font Size(10)),
List1 = List Box(m_name, nlines(3), width(50)),
List1 << Set Items(m_name) << Get Selected
);
);