Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");
gb = dt << Graph Builder(
Size(664, 550),
Show Control Panel(0),
Variables(
X(:SITE),
Y(:NPN1),
Y(:PNP1, Position(1)),
Y(:PNP2, Position(1)),
Y(:NPN2, Position(1))
),
Elements(
Points(X, Y(1), Y(2), Y(3), Y(4), Legend(5), Summary Statistic("Mean"))
)
);
server = gb << Get Legend Server;
items = server << Get Legend Items;
For Each({item, index}, items[1],
l = item << get label;
newl = Word(-1, l, "()"); // your logic here
item << Set Label(newl);
);
Write();
-Jarmo