[그래프 빌더 범례] JSL을 사용하여 모든 범례 항목의 레이블을 일괄 변경하는 방법안녕하세요 여러분,
그래프 생성기를 사용하여 범례를 만들고, 모든 범례 항목을 Mean(x1), Mean(x2), Mean(x3)...으로 시작합니다.
범례 레이블을 모두 x1, x2, x3 등으로 일괄 변경할 수 있나요?
이 방법을 시도해 봤지만 효과가 없었어요.
감사해요!
server = gb << Get Legend Server;
items = server << Get Legend Items;
For( i = 1, i <= N Items( items[1] ), i++,
legendmodelitem = items[1][i];
thelabel= legendmodelitem << get properties(); << get text()?
);
제목: [그래프 빌더 범례] JSL을 사용하여 모든 범례 항목의 레이블을 일괄 변경하는 방법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();