<?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: Formatting elements in Graph Builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Formatting-elements-in-Graph-Builder/m-p/922279#M108094</link>
    <description>&lt;P&gt;I'm not sure if that can be modified without JSL. You can access the TextSeg in the framebox, get text, modify it and then set the modified text&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(525, 454),
	Show Control Panel(0),
	Variables(X(:weight), Y(:height)),
	Elements(
		Points(X, Y, Legend(9)),
		Line Of Fit(X, Y, Legend(11), R²(1), Equation(1))
	)
);

seg = (Report(gb)[framebox(1)]) &amp;lt;&amp;lt; Find Seg(TextSeg(1));
orig_text = seg &amp;lt;&amp;lt; Get Text;

first_part = Word([1 -2], orig_text, " ");
second_part = Word(-1, orig_text, " ");
formatted_second_part = Format(Num(second_part), "Fixed Dec", 5, 2);
final_text = first_part || " " || formatted_second_part;

seg &amp;lt;&amp;lt; Set Text(final_text);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If it isn't possible to do this without JSL (not sure like I said) might be worth making wish list item about this.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jan 2026 07:10:40 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2026-01-06T07:10:40Z</dc:date>
    <item>
      <title>Formatting elements in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Formatting-elements-in-Graph-Builder/m-p/922258#M108085</link>
      <description>&lt;P&gt;Hello - I'm going crazy because I can't figure out a way to change the number for decimals shown in my graph from 3 decimals to 2 decimal points.&lt;/P&gt;
&lt;P&gt;I have tried multiple menu options and I can't find an option to format R2 on the Line of Fit in graph builder. Can someone tell me how do I change the format so the graph shows ONLY 2 decimal point on the R2 and the formula prediction? See the JSL from the platform below, and attached picture with the elements ont he graph I want to change&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 1078, 745 ),
	Lock Scales( 1 ),
	Set α Level( 0.05 ),
	Variables( X( :In Vivo DT ), Y( :In Vitro DT ) ),
	Elements(
		Points( X, Y, Legend( 5 ) ),
		Line Of Fit( X, Y, Legend( 7 ), Degree( "Quadratic" ), R²( 1 ), Equation( 1 ) )
	),
	SendToReport(
		Dispatch( {}, "In Vivo DT", ScaleBox,
			{Format( "Fixed Dec", 12, 0 ), Min( 7.9098 ), Max( 14.4702 ), Inc( 1 ), Minor Ticks( 0 )}
		),
		Dispatch( {}, "In Vitro DT", ScaleBox,
			{Format( "Fixed Dec", 12, 0 ), Min( -50 ), Max( 125 ), Inc( 50 ), Minor Ticks( 1 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Edit by txnelson of JSL into JSL Display Box&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Jan 2026 22:15:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formatting-elements-in-Graph-Builder/m-p/922258#M108085</guid>
      <dc:creator>beeker_g</dc:creator>
      <dc:date>2026-01-05T22:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting elements in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Formatting-elements-in-Graph-Builder/m-p/922279#M108094</link>
      <description>&lt;P&gt;I'm not sure if that can be modified without JSL. You can access the TextSeg in the framebox, get text, modify it and then set the modified text&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(525, 454),
	Show Control Panel(0),
	Variables(X(:weight), Y(:height)),
	Elements(
		Points(X, Y, Legend(9)),
		Line Of Fit(X, Y, Legend(11), R²(1), Equation(1))
	)
);

seg = (Report(gb)[framebox(1)]) &amp;lt;&amp;lt; Find Seg(TextSeg(1));
orig_text = seg &amp;lt;&amp;lt; Get Text;

first_part = Word([1 -2], orig_text, " ");
second_part = Word(-1, orig_text, " ");
formatted_second_part = Format(Num(second_part), "Fixed Dec", 5, 2);
final_text = first_part || " " || formatted_second_part;

seg &amp;lt;&amp;lt; Set Text(final_text);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If it isn't possible to do this without JSL (not sure like I said) might be worth making wish list item about this.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 07:10:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formatting-elements-in-Graph-Builder/m-p/922279#M108094</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-01-06T07:10:40Z</dc:date>
    </item>
  </channel>
</rss>

