<?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 can a complete large table be used to create an independent graph in the control panel without extracting subsets in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-a-complete-large-table-be-used-to-create-an-independent/m-p/880890#M104467</link>
    <description>&lt;P&gt;You could use Where in your graph builder call and then get it as a picture&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

Summarize(dt, groups = By(:sex));


lub = Lineup Box(N Col(2));

For Each({group}, groups,
	gb = dt &amp;lt;&amp;lt; Graph Builder(
		Variables(X(:weight), Y(:height)),
		Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11))),
		Where(:sex == group),
		Invisible
	);
	wait(0);
	lub &amp;lt;&amp;lt; Append(Report(gb) &amp;lt;&amp;lt; get picture);
	gb &amp;lt;&amp;lt; Close Window;
);

nw = New Window("Report",
	lub
);

Write();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 23 Jun 2025 07:45:35 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-06-23T07:45:35Z</dc:date>
    <item>
      <title>How can a complete large table be used to create an independent graph in the control panel without extracting subsets</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-a-complete-large-table-be-used-to-create-an-independent/m-p/880875#M104465</link>
      <description>&lt;P&gt;Rather special stock charts. Thank you, experts.&lt;BR /&gt;How can a complete large table be used to create an independent graph in the control panel without extracting subsets&lt;BR /&gt;For example, this stock data is processed by a script to generate multiple stock data, and the price data of each stock vary greatly.&lt;BR /&gt;It is difficult to obtain a perfect Graph using wrap in Graph Builder.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;d0=Current Data Table();r=N Row(d0);
VV={"Date","Open","High","Low","Close","Volume"};
for(k=1,k&amp;lt;=4,k++,
d0&amp;lt;&amp;lt;Select Where(1);d0&amp;lt;&amp;lt;Select Columns(Eval(VV));d1=d0&amp;lt;&amp;lt;Subset(Output Table("ts"),Selected Rows(1),columns(Eval(VV)));
if(k==1,a="A",if(k==2,a="B";g=10,if(k==3,a="C";g=100,a="D")));
if(k&amp;gt;2,For(j=2,j&amp;lt;=NItems(VV)-1,j++,i=1;ca=VV[j];ar=d1&amp;lt;&amp;lt;GetAsMatrix(ca);for(i=1,i&amp;lt;=r,i++,ar[i,1]=round(ar[i,1]*g,0));d1[0,ca]=ar;));
ca="code";New Column(ca,Character,"Nominal");Current Data Table()[0,ca]= a;
m=5;ca="M"||char(m);New Column(ca);Column(ca)&amp;lt;&amp;lt;Formula( if(lag(code,m-1)==code,round(mean(close[Index(Row()-m+1,Row())]),2))) ;d1&amp;lt;&amp;lt;run formulas;Column(ca)&amp;lt;&amp;lt;deleteFormula;
m=10;ca="M"||char(m);New Column(ca);Column(ca)&amp;lt;&amp;lt;Formula( if(lag(code,m-1)==code,round(mean(close[Index(Row()-m+1,Row())]),2))) ;d1&amp;lt;&amp;lt;run formulas;Column(ca)&amp;lt;&amp;lt;deleteFormula;
if(k==1,dt=d1;dt&amp;lt;&amp;lt;setName("ts2");current data table()&amp;lt;&amp;lt;Go To(code);current data table()&amp;lt;&amp;lt;Move Selected Columns(To first);,current data table(dt);dt&amp;lt;&amp;lt;Concatenate(Data Table(d1),Append to first table);Close(d1,nosave));
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How to use scripts to create independent graphs for each stock in the control panel?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 07:20:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-a-complete-large-table-be-used-to-create-an-independent/m-p/880875#M104465</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-06-23T07:20:41Z</dc:date>
    </item>
    <item>
      <title>回复： How can a complete large table be used to create an independent graph in the control panel without extracting subsets</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-a-complete-large-table-be-used-to-create-an-independent/m-p/880887#M104466</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Current Data Table();p1=dt&amp;lt;&amp;lt; Graph Builder(Size(656,518),Show Control Panel(0),Show Legend(0),Show Title(0),Show Footer(0),Show X Axis(0),Show Y Axis(0),Show X Axis Title(0),Show Y Axis Title(0),Variables(X(Transform Column("Row",Formula(Row()))),Y(:High),Y(:Low,Position(1)),Y(:M5,Position(1),Side("Right")),Y(:M10,Position(1),Side("Right")),Y(:Volume)),Relative Sizes("Y",[243 166]),Elements(Position(1,1),Bar(X,Y(1),Y(2),Legend(7),Bar Style("Interval")),Line(X,Y(3),Y(4),Legend(6))),Elements(Position(1,2),Bar(X,Y,Legend(5))),SendToReport(Dispatch({},"Row",ScaleBox,{Min(-1),Max(64),Inc(10),Minor Ticks(0)}),Dispatch({},"High",ScaleBox,{Min(20),Max(56),Inc(10),Minor Ticks(1)}),Dispatch({},"M5",ScaleBox,{Min(20),Max(56),Inc(10),Minor Ticks(1)}),Dispatch({},"400",ScaleBox,{Legend Model(5,Properties(0,{Fill Color(32),Transparency(0.5)},Item ID("Volume",1)))}),Dispatch({},"Graph Builder",FrameBox,{Add Graphics Script(4,Description(""),/*KE*/bb=0.4;days=r-1;Pen Size(1);For(i=1,i&amp;lt;=N Rows(dt),i++,If(:Open[i]&amp;lt;=:Close[i],Pen Color(light red);Fill Color(light red);,Pen Color(light green);Fill Color(light green););Rect(i-bb,Max(:Open[i],:Close[i]),i+bb,Min(:Open[i],:Close[i]),1);Rect(i-bb,Max(:Open[i],:Close[i]),i+bb,Min(:Open[i],:Close[i]),0););)}),Dispatch({},"400",LegendBox,{Legend Position({7,[3],6,[0,1],5,[2]})})));(p1 &amp;lt;&amp;lt; XPath("//OutlineBox[text() = 'Graph Builder']")) &amp;lt;&amp;lt; Set Title("");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-06-23_15-36-10.png" style="width: 426px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77198i3993E6B178E191CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-06-23_15-36-10.png" alt="2025-06-23_15-36-10.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 07:38:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-a-complete-large-table-be-used-to-create-an-independent/m-p/880887#M104466</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-06-23T07:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can a complete large table be used to create an independent graph in the control panel without extracting subsets</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-a-complete-large-table-be-used-to-create-an-independent/m-p/880890#M104467</link>
      <description>&lt;P&gt;You could use Where in your graph builder call and then get it as a picture&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

Summarize(dt, groups = By(:sex));


lub = Lineup Box(N Col(2));

For Each({group}, groups,
	gb = dt &amp;lt;&amp;lt; Graph Builder(
		Variables(X(:weight), Y(:height)),
		Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11))),
		Where(:sex == group),
		Invisible
	);
	wait(0);
	lub &amp;lt;&amp;lt; Append(Report(gb) &amp;lt;&amp;lt; get picture);
	gb &amp;lt;&amp;lt; Close Window;
);

nw = New Window("Report",
	lub
);

Write();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jun 2025 07:45:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-a-complete-large-table-be-used-to-create-an-independent/m-p/880890#M104467</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-06-23T07:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can a complete large table be used to create an independent graph in the control panel without extracting subsets</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-a-complete-large-table-be-used-to-create-an-independent/m-p/881109#M104503</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Because stock charts have scripts, their effects are different、Thanks Experts!&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/*KE*/bb=0.4;days=r-1;Pen Size(1);For(i=1,i&amp;lt;=N Rows(dt),i++,If(:Open[i]&amp;lt;=:Close[i],Pen Color(light red);Fill Color(light red);,Pen Color(light green);Fill Color(light green););Rect(i-bb,Max(:Open[i],:Close[i]),i+bb,Min(:Open[i],:Close[i]),1);Rect(i-bb,Max(:Open[i],:Close[i]),i+bb,Min(:Open[i],:Close[i]),0););&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jun 2025 07:56:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-a-complete-large-table-be-used-to-create-an-independent/m-p/881109#M104503</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-06-24T07:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can a complete large table be used to create an independent graph in the control panel without extracting subsets</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-a-complete-large-table-be-used-to-create-an-independent/m-p/881120#M104505</link>
      <description>&lt;P&gt;Skip the picture part and just use Where?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

Summarize(dt, groups = By(:sex));

lub = Lineup Box(N Col(2));

gbs = {};
For Each({group}, groups,
	gb_expr = Expr(dt &amp;lt;&amp;lt; Graph Builder(
		Variables(X(:weight), Y(:height)),
		Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11))),
		Where(:sex == group),
		Invisible
	));
	lub &amp;lt;&amp;lt; Append(gb = gb_expr);
	Insert Into(gbs, gb);
);

nw = New Window("Report",
	lub
);
Show(gbs &amp;lt;&amp;lt; Get Data Table);

Write();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jun 2025 08:10:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-a-complete-large-table-be-used-to-create-an-independent/m-p/881120#M104505</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-06-24T08:10:18Z</dc:date>
    </item>
  </channel>
</rss>

