<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [Graph Builder Legend] How to batch rename all the legend items label by JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Legend-How-to-batch-rename-all-the-legend-items/m-p/971895#M110554</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");


gb = dt &amp;lt;&amp;lt; 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 &amp;lt;&amp;lt; Get Legend Server;
items = server &amp;lt;&amp;lt; Get Legend Items;
For Each({item, index}, items[1],
	l = item &amp;lt;&amp;lt; get label;
	newl = Word(-1, l, "()"); // your logic here
	item &amp;lt;&amp;lt; Set Label(newl);
);

Write();&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 17 Sep 2026 08:44:33 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2026-09-17T08:44:33Z</dc:date>
    <item>
      <title>[Graph Builder Legend] How to batch rename all the legend items label by JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Legend-How-to-batch-rename-all-the-legend-items/m-p/971823#M110553</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I create a graph builder with legend, and all legend items starts with Mean(x1) Mean(x2) Mean(x3)...&lt;/P&gt;
&lt;P&gt;is it able to batch change all the legend label to just x1, x2, x3 ...&lt;/P&gt;
&lt;P&gt;I tried this way but didn't work.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;server = gb &amp;lt;&amp;lt; Get Legend Server;
items = server &amp;lt;&amp;lt; Get Legend Items;
For( i = 1, i &amp;lt;= N Items( items[1] ), i++,
	legendmodelitem = items[1][i];
	thelabel= legendmodelitem &amp;lt;&amp;lt; get properties(); &amp;lt;&amp;lt; get text()?
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Sep 2026 01:37:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Legend-How-to-batch-rename-all-the-legend-items/m-p/971823#M110553</guid>
      <dc:creator>Clanlope</dc:creator>
      <dc:date>2026-09-17T01:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: [Graph Builder Legend] How to batch rename all the legend items label by JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Legend-How-to-batch-rename-all-the-legend-items/m-p/971895#M110554</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");


gb = dt &amp;lt;&amp;lt; 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 &amp;lt;&amp;lt; Get Legend Server;
items = server &amp;lt;&amp;lt; Get Legend Items;
For Each({item, index}, items[1],
	l = item &amp;lt;&amp;lt; get label;
	newl = Word(-1, l, "()"); // your logic here
	item &amp;lt;&amp;lt; Set Label(newl);
);

Write();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Sep 2026 08:44:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Legend-How-to-batch-rename-all-the-legend-items/m-p/971895#M110554</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-09-17T08:44:33Z</dc:date>
    </item>
  </channel>
</rss>

