Do you have multiple columns in Y-axis or how are you plotting those separate lines? Using overlay should be fairly easy
Script created by JMP isn't too bad
Graph Builder(
Variables(X(:lot_id), Y(:NPN1), Overlay(:NPN2)),
Elements(Smoother(X, Y, Legend(7))),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
7,
Properties(0, {Line Label Properties({Name Label(1), Width(9)})}, Item ID("108.83 - 113.96", 1)),
Properties(1, {Line Label Properties({Name Label(1), Width(9)})}, Item ID("113.96 - 115.2", 1)),
Properties(2, {Line Label Properties({Name Label(1), Width(9)})}, Item ID("115.2 - 116.32", 1)),
Properties(3, {Line Label Properties({Name Label(1), Width(9)})}, Item ID("116.32 - 117.58", 1)),
Properties(4, {Line Label Properties({Name Label(1), Width(9)})}, Item ID("117.58 - 121.78", 1))
)}
)
)
)
and can be made "better"
lgd_server = gb << Get Legend Server;
items = lgd_server << Get Legend Items;
For Each({item, index}, items[1],
item << Set Properties( {Line Label Properties({Name Label(1)})});
);
Full example
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");
gb = dt << Graph Builder(
Variables(X(:lot_id), Y(:NPN1), Overlay(:NPN2)),
Elements(Smoother(X, Y, Legend(7)))
);
lgd_server = gb << Get Legend Server;
items = lgd_server << Get Legend Items;
For Each({item, index}, items[1],
item << Set Properties( {Line Label Properties({Name Label(1)})});
);
-Jarmo