Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
gb = dt << Graph Builder(
Legend Position("Inside Right"),
Variables(X(:weight), Y(:height), Color(:sex)),
Elements(Points(X, Y, Legend(3)), Smoother(X, Y, Legend(5))),
SendToReport(
Dispatch({}, "400", ScaleBox,
{Legend Model(
5,
Base(0, 0, 1, Item ID("Smooth", 1)),
Properties(0, {Line Color(-9939840)}, Item ID("Smooth", 1))
)}
),
Dispatch({}, "400", LegendBox, {Set Title("Legend")})
)
);
Report(gb)[LegendBox(1)] << Border(15);