<?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 make multi-row dashboards with JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773257#M95419</link>
    <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;I still haven't succeeded with the full executable JSL&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Thanks Experts!&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col1", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col2", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col3", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col4", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col5", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col6", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col7", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col8", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;//??&lt;BR /&gt;gb_expr = Expr(dt &amp;lt;&amp;lt; Graph Builder(&lt;BR /&gt;Transform Column("row", Formula(Row())),&lt;BR /&gt;Size(500, 100),&lt;BR /&gt;Show Control Panel(0),&lt;BR /&gt;Show Legend(0),&lt;BR /&gt;Show Title(0),&lt;BR /&gt;Show Footer(0),&lt;BR /&gt;Show X Axis(0),&lt;BR /&gt;Show Y Axis(0),&lt;BR /&gt;Show X Axis Title(0),&lt;BR /&gt;Show Y Axis Title(0),&lt;BR /&gt;Variables(X(:row), Y(:height)),&lt;BR /&gt;Elements(Line(X, Y, Legend(5)))&lt;BR /&gt;));&lt;/P&gt;&lt;P&gt;lub = Lineup Box(N Col(1));&lt;BR /&gt;p2=dt&amp;lt;&amp;lt; Graph Builder(Transform Column("row",Formula(Row())),Size(500,100),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(:row),Y(:weight)),Elements(Line(X,Y,Legend(5))));&lt;BR /&gt;(p2 &amp;lt;&amp;lt; XPath("//OutlineBox[text() = '&lt;SPAN&gt;图形生成器&lt;/SPAN&gt;']")) &amp;lt;&amp;lt; Set Title("");&lt;BR /&gt;lub = Lineup Box(N Col(1));&lt;/P&gt;&lt;P&gt;lub &amp;lt;&amp;lt; append(gb_expr)&lt;BR /&gt;……&lt;BR /&gt;nw = new window("",&lt;BR /&gt;lub&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(nw &amp;lt;&amp;lt; XPath("//OutlineBox[text() = '图形生成器']")) &amp;lt;&amp;lt; Set Title("");&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2024 08:39:20 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2024-07-16T08:39:20Z</dc:date>
    <item>
      <title>How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773236#M95413</link>
      <description>&lt;P&gt;I saved the script for manually creating the dashboard to the data table and closed the data table&lt;BR /&gt;Reopening the table and executing the script was unsuccessful.&lt;/P&gt;&lt;P&gt;Thanks Experts!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Open("$SAMPLE_DATA/Big Class.jmp");
p1=dt&amp;lt;&amp;lt; Graph Builder(Transform Column("row",Formula(Row())),Size(500,100),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(:row),Y(:height)),Elements(Line(X,Y,Legend(5))));
p2=dt&amp;lt;&amp;lt; Graph Builder(Transform Column("row",Formula(Row())),Size(500,100),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(:row),Y(:weight)),Elements(Line(X,Y,Legend(5))));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-07-16_15-26-07.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66209i293D17314F5808FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-07-16_15-26-07.png" alt="2024-07-16_15-26-07.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 07:33:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773236#M95413</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-16T07:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773246#M95414</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;This is the saved JSL&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 401, 40 ),
	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( :weight ) ),
	Elements( Line( X, Y, Legend( 5 ) ) )
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 16 Jul 2024 07:35:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773246#M95414</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-16T07:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773248#M95415</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If my data table has 40 columns and I need to make this form of dashboard, how do I script it&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&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="2024-07-16_15-39-23.png" style="width: 311px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66210i729CF363BCD0B76C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-07-16_15-39-23.png" alt="2024-07-16_15-39-23.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 07:39:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773248#M95415</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-16T07:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773249#M95416</link>
      <description>&lt;P&gt;Is it necessary to use Application Builder? It might be easier to just build new window and append reports to that&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_expr = Expr(dt &amp;lt;&amp;lt; Graph Builder(
	Transform Column("row", Formula(Row())),
	Size(500, 100),
	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(:row), Y(:height)),
	Elements(Line(X, Y, Legend(5)))
));

lub = Lineup Box(N Col(1));

For(i = 1, i &amp;lt;= 10, i++,
	lub &amp;lt;&amp;lt; append(gb_expr)
);

nw = new window("",
	lub
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jul 2024 07:49:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773249#M95416</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-16T07:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773252#M95417</link>
      <description>&lt;P&gt;Thank jthi !&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Can this name of each window be hidden?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-07-16_16-01-32.png" style="width: 554px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66211iB4ECF1E0C8079FFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-07-16_16-01-32.png" alt="2024-07-16_16-01-32.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:05:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773252#M95417</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-16T08:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773253#M95418</link>
      <description>&lt;P&gt;Yes they can. How you might want to do it depends on your application, below is one option using XPath&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(nw &amp;lt;&amp;lt; XPath("//OutlineBox[text() = 'Graph Builder']")) &amp;lt;&amp;lt; Set Title("");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:10:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773253#M95418</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-16T08:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773257#M95419</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;I still haven't succeeded with the full executable JSL&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Thanks Experts!&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col1", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col2", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col3", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col4", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col5", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col6", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col7", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;dt &amp;lt;&amp;lt; New Column( "col8", Numeric, Continuous, Set Formula( Col Shuffle() ) );&lt;BR /&gt;//??&lt;BR /&gt;gb_expr = Expr(dt &amp;lt;&amp;lt; Graph Builder(&lt;BR /&gt;Transform Column("row", Formula(Row())),&lt;BR /&gt;Size(500, 100),&lt;BR /&gt;Show Control Panel(0),&lt;BR /&gt;Show Legend(0),&lt;BR /&gt;Show Title(0),&lt;BR /&gt;Show Footer(0),&lt;BR /&gt;Show X Axis(0),&lt;BR /&gt;Show Y Axis(0),&lt;BR /&gt;Show X Axis Title(0),&lt;BR /&gt;Show Y Axis Title(0),&lt;BR /&gt;Variables(X(:row), Y(:height)),&lt;BR /&gt;Elements(Line(X, Y, Legend(5)))&lt;BR /&gt;));&lt;/P&gt;&lt;P&gt;lub = Lineup Box(N Col(1));&lt;BR /&gt;p2=dt&amp;lt;&amp;lt; Graph Builder(Transform Column("row",Formula(Row())),Size(500,100),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(:row),Y(:weight)),Elements(Line(X,Y,Legend(5))));&lt;BR /&gt;(p2 &amp;lt;&amp;lt; XPath("//OutlineBox[text() = '&lt;SPAN&gt;图形生成器&lt;/SPAN&gt;']")) &amp;lt;&amp;lt; Set Title("");&lt;BR /&gt;lub = Lineup Box(N Col(1));&lt;/P&gt;&lt;P&gt;lub &amp;lt;&amp;lt; append(gb_expr)&lt;BR /&gt;……&lt;BR /&gt;nw = new window("",&lt;BR /&gt;lub&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(nw &amp;lt;&amp;lt; XPath("//OutlineBox[text() = '图形生成器']")) &amp;lt;&amp;lt; Set Title("");&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:39:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773257#M95419</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-16T08:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773263#M95420</link>
      <description>&lt;P&gt;Report(platform)["图形生成器"]&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-07-16_16-33-47.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66219i71C321994722BDFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-07-16_16-33-47.png" alt="2024-07-16_16-33-47.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:35:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773263#M95420</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-16T08:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773265#M95421</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It can be hidden, but how to write multiple columns in JSL is still not successful.&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="2024-07-16_16-39-35.png" style="width: 647px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66220i3B693E1995AC4022/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-07-16_16-39-35.png" alt="2024-07-16_16-39-35.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:41:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773265#M95421</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-16T08:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773267#M95422</link>
      <description>&lt;P&gt;You have to slow down a little bit, explain what you need in small steps. Currently you are asking for multiple different things which all have different solutions as it seems like the goal is changing all the time just a little (makes providing robust solution very difficult).&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:44:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773267#M95422</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-16T08:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773268#M95423</link>
      <description>&lt;P&gt;Yes, the expert's code has pretty much done the trick.&lt;BR /&gt;You just added the "height" column 10 times to the dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I write code if I want to add a total of 10 columns to the table, one by one, along with the new ones?That's the key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for the hidden text is secondary.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks Experts!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:56:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773268#M95423</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-16T08:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773279#M95424</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; New Column("col1", Numeric, Continuous, Set Formula(Col Shuffle()));
dt &amp;lt;&amp;lt; New Column("col2", Numeric, Continuous, Set Formula(Col Shuffle()));
dt &amp;lt;&amp;lt; New Column("col3", Numeric, Continuous, Set Formula(Col Shuffle()));
dt &amp;lt;&amp;lt; New Column("col4", Numeric, Continuous, Set Formula(Col Shuffle()));
dt &amp;lt;&amp;lt; New Column("col5", Numeric, Continuous, Set Formula(Col Shuffle()));
dt &amp;lt;&amp;lt; New Column("col6", Numeric, Continuous, Set Formula(Col Shuffle()));
dt &amp;lt;&amp;lt; New Column("col7", Numeric, Continuous, Set Formula(Col Shuffle()));
dt &amp;lt;&amp;lt; New Column("col8", Numeric, Continuous, Set Formula(Col Shuffle()));

create_report = function({dt, colname}, {Default Local},
	gb = dt &amp;lt;&amp;lt; Graph Builder(
		Transform Column("row", Formula(Row())),
		Size(500, 100),
		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(:row), Y(Eval(colname))),
		Elements(Line(X, Y, Legend(5))),
		SendToReport(
			Dispatch({}, "Graph Builder", OutlineBox,
				{Set Title(""), Image Export Display(Normal)}
			)
		)
	);
	
	return(gb);
);

lub = Lineup Box(N Col(1));
cols = {"col1", "col2", "col3", "col4", "col5", "col6", "col7", "col8"};

For Each({colname}, cols,
	lub &amp;lt;&amp;lt; Append(create_report(dt, colname));
);

nw = new window("",
	lub
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jul 2024 09:10:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773279#M95424</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-16T09:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773479#M95461</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;JSL Making Graphics How do I make column names dynamic and generic?&lt;/SPAN&gt;&lt;SPAN class=""&gt;Like this, the number of columns I added and the column names are different&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Experts!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; New Column("col1", Numeric, Continuous, Set Formula(Col Shuffle()));
dt &amp;lt;&amp;lt; New Column("col2", Numeric, Continuous, Set Formula(Col Shuffle()));
dt &amp;lt;&amp;lt; New Column("col3", Numeric, Continuous, Set Formula(Col Shuffle()));

p1=dt&amp;lt;&amp;lt; Graph Builder(
	Size( 534, 648 ),
	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 ),
	Variables(
		X( Transform Column( "Row", Formula( Row() ) ) ),
		Y( :height ),
		Y( :weight ),
		Y( :col1 ),
		Y( :col2 ),
		Y( :col3 ),
		Y( :col3 )
	),
	Elements( Position( 1, 1 ), Bar( X, Y, Legend( 10 ) ) ),
	Elements( Position( 1, 2 ), Bar( X, Y, Legend( 9 ) ) ),
	Elements( Position( 1, 3 ), Bar( X, Y, Legend( 8 ) ) ),
	Elements( Position( 1, 4 ), Bar( X, Y, Legend( 7 ) ) ),
	Elements( Position( 1, 5 ), Bar( X, Y, Legend( 6 ) ) ),
	Elements( Position( 1, 6 ), Bar( X, Y, Legend( 5 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-07-17_10-56-00.png" style="width: 750px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66235i46467B85E993E832/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-07-17_10-56-00.png" alt="2024-07-17_10-56-00.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 03:00:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773479#M95461</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-17T03:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773493#M95465</link>
      <description>&lt;P&gt;Do you always have the same amount of graphs? If not, then I usually build the expressions separately (Variables() and Elements) and then use Eval(Substitute()) to add them to graph builder expression which I finally evaluate. I know there has been quite a few topics about this as I have replied to those (I just can't find them) but this post by Xan gives the basic idea&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.jmp.com/t5/The-Plot-Thickens/Reply-All-How-to-script-dynamic-content-for-Graph-Builder/ba-p/21092" target="_blank" rel="noopener"&gt; Reply All: How to script dynamic content for Graph Builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 05:10:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773493#M95465</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-17T05:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773509#M95469</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; New Column("col1", Numeric, Continuous, Set Formula(Col Shuffle()));
dt &amp;lt;&amp;lt; New Column("col2", Numeric, Continuous, Set Formula(Col Shuffle()));
dt &amp;lt;&amp;lt; New Column("col3", Numeric, Continuous, Set Formula(Col Shuffle()));

vars = Expr(Variables(X(Transform Column("Row", Formula(Row())))));
points = Expr(Line(X, Y, Legend(5)));

起 = 4;止 = 8;
For(i = 起, i &amp;lt;= 止, i++,
    Insert Into(vars, Eval Expr(Y(Expr(Column(dt, i)), Position(1))));
  Insert Into( points, Eval Expr( Y( Expr( i - 起 + 1 ) ) ),  i - 起 );
);

gb = Eval Expr(
    Graph Builder(
        Size(534, 648),
        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),
        Expr(Name Expr(vars)),
        points(Expr(Name Expr(points)))
    )
);
gb;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I just so&lt;/P&gt;&lt;P&gt;Thanks Experts!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 06:02:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/773509#M95469</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-17T06:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/774052#M95564</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;I tried to write it yesterday, but it still didn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The problem with this code is the variable "two."&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column( "col1", Numeric, Continuous, Set Formula( Col Shuffle() ) );
dt &amp;lt;&amp;lt; New Column( "col2", Numeric, Continuous, Set Formula( Col Shuffle() ) );
dt &amp;lt;&amp;lt; New Column( "col3", Numeric, Continuous, Set Formula( Col Shuffle() ) );
m1 = 1; m2 = 180; m0 = 10;

one=Expr(Variables( X( Transform Column( "Row", Formula( Row() ))) , Y( :height ) ));two=Expr(Elements( Position( 1, 1 ), Bar( X, Y, Legend( 5 ) ) ) );thr=Expr( Dispatch( {}, "height", ScaleBox, {Min( m1 ), Max( m2 ), Inc( m0 ), Minor Ticks( 1 )} ));

first co = 5;last col = 8;
For( i = first co, i &amp;lt;= last col, i++,
  Insert Into( one, Eval Expr( Y( Expr( Column( dt, i ) ) ) ) );
  Insert Into( two, Eval Expr(Elements( Position( 1, Expr(i-3 )), Bar( X, Y, Legend( Expr(1+i )) ) ) ));
  Insert Into( thr, Eval Expr( Dispatch( {}, Column(Expr(i))&amp;lt;&amp;lt;Get Name, ScaleBox, {Min( m1 ), Max( m2 ), Inc( m0 ), Minor Ticks( 1 )} ) ));
);

gb = Eval Expr( Graph Builder(
	Size( 519, 841 ),
	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 ),
	Expr( Name Expr( one )) ,
Expr( Name Expr( two )),
	SendToReport(
Expr( Name Expr( thr ))
	)
));
gb;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-07-18_17-44-45.png" style="width: 253px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66319i838261FBE3A3DA44/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-07-18_17-44-45.png" alt="2024-07-18_17-44-45.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 10:44:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/774052#M95564</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-19T10:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/774193#M95579</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Save the drawing code as a separate JSL&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;So it's easy to combine.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;tx1 = "";
tx2 = "";
tx3 = "SendToReport(";
For( i = first co, i &amp;lt;= last col, i++, 
//……
);
txt =
"nw=dt&amp;lt;&amp;lt; Graph Builder(Size(554,1654),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),Variables(X(:分)"
 || tx1 || ")" || tx2 || "\!n," || tx3 ||
"));(nw &amp;lt;&amp;lt; XPath(\!"//OutlineBox[text() = '图形生成器']\!")) &amp;lt;&amp;lt; Set Title(\!"\!");nw&amp;lt;&amp;lt;Set Window Size(600,2160);nw&amp;lt;&amp;lt;Move Window(3110,0);";
Save Text File( "C:\1\drawing.jsl", txt );
Wait(1);
Include( "C:\1\drawing.jsl" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Jul 2024 01:40:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/774193#M95579</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-20T01:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/774267#M95586</link>
      <description>&lt;P&gt;Scripting Index as examples of both Add Variable and Add Element&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; New Column("col1", Numeric, Continuous, Set Formula(Col Shuffle()));
dt &amp;lt;&amp;lt; New Column("col2", Numeric, Continuous, Set Formula(Col Shuffle()));
dt &amp;lt;&amp;lt; New Column("col3", Numeric, Continuous, Set Formula(Col Shuffle()));

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(534, 648),
	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),
	Variables(
		X(Transform Column("Row", Formula(Row()))), 
		Y(:height), 
		Y(:weight)
	),
	Elements(Position(1, 1), Bar(X, Y, Legend(10))),
	Elements(Position(1, 2), Bar(X, Y, Legend(9)))
);


cols = {"col1", "col2", "col3", "col3"};
For Each({colname, idx}, cols,
	gb &amp;lt;&amp;lt; Add Variable({Eval(colname), Role("Y")});

	// Either add both of these or neither
	gb &amp;lt;&amp;lt; Remove Element(1, 2 + idx, 1);
	gb &amp;lt;&amp;lt; Add Element(1, 2 + idx, {Type("Bar"), X, Y, Legend(9-idx)});
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;Sometimes you have to check the graph builder script to see how it is being built. In this case due to Legend being starting from 10, you either have to first remove element and then add it back OR just let JMP take care of them (so leave out &amp;lt;&amp;lt; Remove Element and &amp;lt;&amp;lt; Add Element)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1721456186653.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66331i8F2B15E24DF276BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1721456186653.png" alt="jthi_0-1721456186653.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Transform Column("Row", Formula(Row())),
	Size(534, 648),
	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),
	Variables(
		X(:Row),
		Y(:height),
		Y(:weight),
		Y(:col1),
		Y(:col2),
		Y(:col3),
		Y(:col3)
	),
	Elements(Position(1, 1), Bar(X, Y, Legend(10))),
	Elements(Position(1, 2), Bar(X, Y, Legend(9))),
	Elements(Position(1, 3), Bar(X, Y, Legend(8))),
	Elements(Position(1, 4), Bar(X, Y, Legend(7))),
	Elements(Position(1, 5), Bar(X, Y, Legend(6))),
	Elements(Position(1, 6), Bar(X, Y, Legend(5)))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jul 2024 06:16:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/774267#M95586</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-20T06:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/774504#M95635</link>
      <description>&lt;P&gt;Thanks Experts!&lt;/P&gt;&lt;P&gt;I set more conditions in the actual application.&lt;BR /&gt;Like this form.I still don't know how to add multiple columns after the fact&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ca = "row";dt = New Table( "test", Add Rows( 40 ), New Column( ca, Character, "Nominal" ) );
Column( ca ) &amp;lt;&amp;lt; Formula( Char( Row() ) );dt &amp;lt;&amp;lt; run formulas;Column( ca ) &amp;lt;&amp;lt; deleteFormula;
na = {"A", "B", "C", "D", "E"};
j = 1;
For( j = 1, j &amp;lt;= N Items( na ), j++,
	i = 1;
	For( i = 1, i &amp;lt;= 4, i++,
		ca = na[j] || Char( i );		New Column( ca );
		Column( ca ) &amp;lt;&amp;lt; Formula( If( i == 1, Random Integer( -100, 100 ), Random Integer( 30 * i, 50 * i ) ) );
		dt &amp;lt;&amp;lt; run formulas;		Column( ca ) &amp;lt;&amp;lt; deleteFormula;		Column( ca ) &amp;lt;&amp;lt; Set Display Width( 38 );
	);
);


p1=dt&amp;lt;&amp;lt;Graph Builder(Size(534,425),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),Variables(X(:row)
,Y(:A1),Y(:A2,Position(1),Side("Right")),Y(:A3,Position(1),Side("Right")),Y(:A4,Position(1),Side("Right"))
,Y(:B1),Y(:B2,Position(2),Side("Right")),Y(:B3,Position(2),Side("Right")),Y(:B4,Position(2),Side("Right")))
,Elements(Position(1,1),Bar(X,Y(1),Legend(10)),Line(X,Y(2),Y(3),Y(4),Legend(8)))
,Elements(Position(1,2),Bar(X,Y(1),Legend(11)),Line(X,Y(2),Y(3),Y(4),Legend(9)))
,SendToReport(
Dispatch({},"A1",ScaleBox,{Min( -100),Max(110),Inc(50),Minor Ticks(1)}),Dispatch({},"B1",ScaleBox,{Min( -100),Max(110),Inc(50),Minor Ticks(1)}),
Dispatch({},"A2",ScaleBox,{Min(0),Max(210),Inc(50),Minor Ticks(1)}),Dispatch({},"B2",ScaleBox,{Min(0),Max(210),Inc(50),Minor Ticks(1)}),
Dispatch({},"400",ScaleBox,{
Legend Model(10,Properties(0,{Transparency(0.5)},Item ID("A1",1))),Legend Model(8,Properties(0,{Line Color(53),Transparency(0.8)},Item ID("A2",1)),Properties(1,{Line Color(51),Transparency(0.5)},Item ID("A3",1)),Properties(2,{Line Color(52),Transparency(0.8)},Item ID("A4",1))),
Legend Model(11,Properties(0,{Transparency(0.5)},Item ID("B1",1))),Legend Model(9,Properties(0,{Line Color(53),Transparency(0.5)},Item ID("B2",1)),Properties(1,{Line Color(51),Transparency(0.8)},Item ID("B3",1)),Properties(2,{Line Color(52),Transparency(0.5)},Item ID("B4",1)))	
}),Dispatch({},"Y r title",TextEditBox,{Hide(1)}),Dispatch({},"Y 1 r title",TextEditBox,{Hide(1)}),Dispatch({},"400",LegendBox,{Legend Position({

10,[6],8,[0,1,2],
11,[7],9,[3,4,5]

})})));;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Illustration:&lt;BR /&gt;A1-A4 is a group of the same letters, are listed as a group of 4, move A2-A4 to the right of the Y axis to form a line graph;A1 is the bar chart,&lt;BR /&gt;The color of the bar is variable, but the color of the line on the right is fixed by number (the same color as the line with different letter groups of the number).&lt;BR /&gt;The graphics are set to transparency.The right Y-axis title is also hidden.&lt;BR /&gt;So there's a lot more code for mapping.I don't know how to batch them.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-07-22_16-07-12.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66366iA37DF0093E9320C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-07-22_16-07-12.png" alt="2024-07-22_16-07-12.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 08:08:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/774504#M95635</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-22T08:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to make multi-row dashboards with JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/774506#M95636</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If the number of series in the graph is more than 200, I do not know how it changes&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="2024-07-22_16-09-30.png" style="width: 218px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66367iA4C29AFB707DA04D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-07-22_16-09-30.png" alt="2024-07-22_16-09-30.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 08:12:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-make-multi-row-dashboards-with-JSL/m-p/774506#M95636</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-07-22T08:12:15Z</dc:date>
    </item>
  </channel>
</rss>

