根据您的应用程序,有很多选项,以下是几个:
最简单的选择很可能是使用数据过滤器

其他选项可能是使用 << Set Function,您可以编写脚本来隐藏和排除数据表中的正确行
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
Summarize(dt, uniq_names = by(:Name));
nw = New Window("",
h list box(
Check Box(
uniq_names,
<< Set Function(function({this},
sel_names = (this << get selected);
// row state 6 is hide and exclude
rows_to_hide = dt << Get Rows Where(Contains(sel_names, :name));
m = J(1, NRows(dt), 6);
m[rows_to_hide] = 0;
dt << Set Row States(m);
))
),
gb = Graph Builder(
Size(528, 456),
Show Control Panel(0),
Variables(X(:weight), Y(:height)),
Elements(Points(X, Y, Legend(5)), Smoother(X, Y, Legend(6)))
)
)
);想知道如何根据仪表板中的复选框筛选绘制的数据?
例如,选择选项将导致图表显示 Apple 和 Orange 数据,并忽略 Banana 或 Pear 的任何数据。

