You can for example utilize Click
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class Families.jmp");
gb = dt << Graph Builder(
Show Control Panel(0),
Variables(X(:height), Y(:weight)),
Elements(Points(X, Y, Legend(4)), Line Of Fit(X, Y, Legend(6))),
SendToReport(
Dispatch({}, "Graph Builder", FrameBox,
{Set Graphlet(
Picture(
Distribution(
Nominal Distribution(Column(:age)),
Automatic Recalc(1)
);
),
Click(
dist = Distribution(
Nominal Distribution(Column(:age)),
Automatic Recalc(1)
);
dist << Column Switcher(:age, {:name, :age, :sex});
)
)
}
)
)
);
-Jarmo