<?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: How to dynamically change the vertical line of the X-axis? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881359#M104534</link>
    <description>&lt;P&gt;Use Graphic Script with "global" variable&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
a = 26;

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables(X(Transform Column("Row", Formula(Row()))), Y(:height)),
	Elements(Line(X, Y, Legend(5)))
);

Report(gb)[FrameBox(1)] &amp;lt;&amp;lt; Add Graphics Script(
	Pen Size(2);
	V Line(a);
);

For(i = 1, i &amp;lt;= 10, i++,
	a = Random Integer(1, 40); // could also use table variable
	Wait(0.5);
	Report(gb) &amp;lt;&amp;lt; Inval;
	Report(gb) &amp;lt;&amp;lt; Update Window;
);

Write();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 25 Jun 2025 08:02:06 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-06-25T08:02:06Z</dc:date>
    <item>
      <title>How to dynamically change the vertical line of the X-axis?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881321#M104531</link>
      <description>&lt;P&gt;I draw the graph like this, and then loop it once every minute. The requirement is that the vertical line of the X-axis can be changed according to the value of the specified variable&lt;BR /&gt;Thanks Experts!&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-06-25_14-33-47.png" style="width: 771px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77313iAE1900A349DD8B20/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-06-25_14-33-47.png" alt="2025-06-25_14-33-47.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;a=26;
dt=Open("$SAMPLE_DATA/Big Class.jmp");
ca="r";New Column(ca);
p1=dt&amp;lt;&amp;lt; Graph Builder(
	Variables( X( Transform Column( "Row", Formula( Row() ) ) ), Y( :height ) ),
	Elements( Line( X, Y, Legend( 5 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Row",
			ScaleBox,
			{Add Ref Line( a, "Dotted", "Medium Light Red", "", 1 )}
		)
	)
);
While( 1,
a=Random Integer(1, 40);//Column(ca)&amp;lt;&amp;lt;Formula( if(row()==a,row()) );dt&amp;lt;&amp;lt;run formulas;Column(ca)&amp;lt;&amp;lt;deleteFormula;
Wait( 60 );
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jun 2025 06:38:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881321#M104531</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-06-25T06:38:57Z</dc:date>
    </item>
    <item>
      <title>回复： How to dynamically change the vertical line of the X-axis?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881353#M104532</link>
      <description>&lt;P&gt;OK&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb_report = p1 &amp;lt;&amp;lt; Report; 
axisbox = gb_report[Axis Box( 1 )]; 

While( 1,
	axisbox &amp;lt;&amp;lt; Remove Ref Line( a ); 
	a = Random Integer( 1, 40 ); 
	axisbox &amp;lt;&amp;lt; Add Ref Line( a, "Dotted", "Medium Light Red", "", 1 ); 
	Wait( 2 ); 
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jun 2025 07:32:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881353#M104532</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-06-25T07:32:59Z</dc:date>
    </item>
    <item>
      <title>回复： How to dynamically change the vertical line of the X-axis?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881358#M104533</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It seems that encountering an overlap like wrap is not that simple&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-06-25_15-55-22.png" style="width: 461px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77319i1B7E1625AF794530/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-06-25_15-55-22.png" alt="2025-06-25_15-55-22.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 08:44:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881358#M104533</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-06-25T08:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the vertical line of the X-axis?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881359#M104534</link>
      <description>&lt;P&gt;Use Graphic Script with "global" variable&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
a = 26;

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables(X(Transform Column("Row", Formula(Row()))), Y(:height)),
	Elements(Line(X, Y, Legend(5)))
);

Report(gb)[FrameBox(1)] &amp;lt;&amp;lt; Add Graphics Script(
	Pen Size(2);
	V Line(a);
);

For(i = 1, i &amp;lt;= 10, i++,
	a = Random Integer(1, 40); // could also use table variable
	Wait(0.5);
	Report(gb) &amp;lt;&amp;lt; Inval;
	Report(gb) &amp;lt;&amp;lt; Update Window;
);

Write();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jun 2025 08:02:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881359#M104534</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-06-25T08:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the vertical line of the X-axis?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881385#M104538</link>
      <description>&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="0-0"&gt;When it comes to practical examples, I still don't know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="2-0"&gt;The graph overlapped with wrap&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="3-0"&gt;The other effects originally set have disappeared and no vertical lines have appeared either.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="3-0"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-06-25_16-39-06.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77322i920ADA96D73635C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-06-25_16-39-06.png" alt="2025-06-25_16-39-06.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 08:44:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881385#M104538</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-06-25T08:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the vertical line of the X-axis?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881466#M104559</link>
      <description>&lt;P&gt;only one Thanks!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-06-25_22-15-31.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77341iF48B2BC09E44DDC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-06-25_22-15-31.png" alt="2025-06-25_22-15-31.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 14:19:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881466#M104559</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-06-25T14:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the vertical line of the X-axis?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881467#M104560</link>
      <description>&lt;P&gt;You might have to add it to all of the frameboxes (Wrap / X Group / Y Group do create multiple)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
a = 26;

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Transform Column("Row", Formula(Row())),
	Size(525, 496),
	Show Control Panel(0),
	Variables(X(:Row), Y(:height), Wrap(:age)),
	Elements(Line(X, Y, Legend(5)))
);


fbs = Report(gb) &amp;lt;&amp;lt; XPath("//FrameBox");
fbs &amp;lt;&amp;lt; Add Graphics Script(
	Pen Size(2);
	V Line(a);
);

For(i = 1, i &amp;lt;= 10, i++,
	a = Random Integer(1, 40); // could also use table variable
	Wait(0.5);
	Report(gb) &amp;lt;&amp;lt; Inval;
	Report(gb) &amp;lt;&amp;lt; Update Window;
);

Write();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jun 2025 14:28:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-change-the-vertical-line-of-the-X-axis/m-p/881467#M104560</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-06-25T14:28:03Z</dc:date>
    </item>
  </channel>
</rss>

