<?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 Grid line on Graph builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Grid-line-on-Graph-builder/m-p/70256#M35187</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following portion of a user input script. The script actually work well. The problem come from when I tried to add in grid line to the plot with jsl, that portion does not seems to work. I tried to replace X1 with x1col, Y1 with y1col(and so on) but does not seems to work too. When I hover the mouse to for example, X1, it is showing the correct column. I knew that I can just drag and drop but as I'm working on large data set and generating plots, it's good that I have them automated. Please advise how can I overcome this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x1col = Column(dt, X1);
y1col = Column(dt, Y1);
y2col = Column(dt, Y2);
y3col = Column(dt, Y3);
y4col = Column(dt, Y4);
	
Graph Builder(
   
    Variables(X(Column(dt, X1)), Y(Column(dt, Y1)), Y(Column(dt, Y2)),Y(Column(dt, Y3)),Y(Column(dt, Y4)),
	
	 Group X( :Title )
    
    ),
    Elements( Position( 1, 1 ), Line( X, Y )),
	Elements( Position( 1, 2 ), Line( X, Y )),
	Elements( Position( 1, 3 ), Line( X, Y )),
	Elements( Position( 1, 4 ), 
		//Bar( X, Y, Legend( 36 ), Summary Statistic( "N" ) )
    Bar( X, Y, Summary Statistic( "N" ))),
   
   SendToReport(
		Dispatch(
			{},
			&lt;EM&gt;X1&lt;/EM&gt;,
			ScaleBox,
			{Label Row( Label Orientation( "Vertical" ) )}
		),
		Dispatch( {}, :&lt;EM&gt;Y1&lt;/EM&gt;, ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
		Dispatch(
			//{},
			&lt;EM&gt;Y2&lt;/EM&gt;,
			ScaleBox,
			{Label Row( Show Major Grid( 1 ) )}
		),
		Dispatch( {}, &lt;EM&gt;Y3&lt;/EM&gt;, ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
		Dispatch( {}, &lt;EM&gt;Y4&lt;/EM&gt;, ScaleBox, {Label Row( Show Major Grid( 1 ) )} )
		) 
    
    ),&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Aug 2018 08:16:28 GMT</pubDate>
    <dc:creator>adam</dc:creator>
    <dc:date>2018-08-28T08:16:28Z</dc:date>
    <item>
      <title>Grid line on Graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Grid-line-on-Graph-builder/m-p/70256#M35187</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following portion of a user input script. The script actually work well. The problem come from when I tried to add in grid line to the plot with jsl, that portion does not seems to work. I tried to replace X1 with x1col, Y1 with y1col(and so on) but does not seems to work too. When I hover the mouse to for example, X1, it is showing the correct column. I knew that I can just drag and drop but as I'm working on large data set and generating plots, it's good that I have them automated. Please advise how can I overcome this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x1col = Column(dt, X1);
y1col = Column(dt, Y1);
y2col = Column(dt, Y2);
y3col = Column(dt, Y3);
y4col = Column(dt, Y4);
	
Graph Builder(
   
    Variables(X(Column(dt, X1)), Y(Column(dt, Y1)), Y(Column(dt, Y2)),Y(Column(dt, Y3)),Y(Column(dt, Y4)),
	
	 Group X( :Title )
    
    ),
    Elements( Position( 1, 1 ), Line( X, Y )),
	Elements( Position( 1, 2 ), Line( X, Y )),
	Elements( Position( 1, 3 ), Line( X, Y )),
	Elements( Position( 1, 4 ), 
		//Bar( X, Y, Legend( 36 ), Summary Statistic( "N" ) )
    Bar( X, Y, Summary Statistic( "N" ))),
   
   SendToReport(
		Dispatch(
			{},
			&lt;EM&gt;X1&lt;/EM&gt;,
			ScaleBox,
			{Label Row( Label Orientation( "Vertical" ) )}
		),
		Dispatch( {}, :&lt;EM&gt;Y1&lt;/EM&gt;, ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
		Dispatch(
			//{},
			&lt;EM&gt;Y2&lt;/EM&gt;,
			ScaleBox,
			{Label Row( Show Major Grid( 1 ) )}
		),
		Dispatch( {}, &lt;EM&gt;Y3&lt;/EM&gt;, ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
		Dispatch( {}, &lt;EM&gt;Y4&lt;/EM&gt;, ScaleBox, {Label Row( Show Major Grid( 1 ) )} )
		) 
    
    ),&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 08:16:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Grid-line-on-Graph-builder/m-p/70256#M35187</guid>
      <dc:creator>adam</dc:creator>
      <dc:date>2018-08-28T08:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Grid line on Graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Grid-line-on-Graph-builder/m-p/70261#M35190</link>
      <description>&lt;P&gt;The GraphBuilder Scale Box Dispatch statement wants the column name.&amp;nbsp; A simple method to do that is to use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;colref &amp;lt;&amp;lt; getname.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a slight modification of the script you provided using the JMP sample data table Candy Bars.jmp&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
//Open the JMP Sample Data table Candy Bars, create a 4x2 display 
dt = Open("$Sample_Data/Candy Bars.jmp");

dt &amp;lt;&amp;lt; select where(!Contains({"M&amp;amp;M/Mars","Hershey"}, :Brand) );
dt &amp;lt;&amp;lt; delete rows();
:Brand &amp;lt;&amp;lt; set name("Title");


x1col = Column(dt, "Carbohydrate g");
y1col = Column(dt, "Sugars g");
y2col = Column(dt, "Total fat g");
y3col = Column(dt, "Saturated fat g");
y4col = Column(dt, "Protein g");


candy_gb1 = dt &amp;lt;&amp;lt; Graph Builder( 
  Variables(
     X(x1col), Y(y1col), Y(y2col),Y(y3col),Y(y4col),
	 Group X( :Title )
   ),
    Elements( Position( 1, 1 ), Line( X, Y ) ),
	Elements( Position( 1, 2 ), Line( X, Y ) ),
	Elements( Position( 1, 3 ), Line( X, Y ) ),
	Elements( Position( 1, 4 ), 
		//Bar( X, Y, Legend( 36 ), Summary Statistic( "N" ) )
    Bar( X, Y, Summary Statistic( "N" )) ),
	SendToReport(
		Dispatch(
			{},
			x1col&amp;lt;&amp;lt;getname,
			ScaleBox,
			{Label Row( Label Orientation( "Vertical" ) )}
		),
		Dispatch( {}, y1col&amp;lt;&amp;lt;getname, ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
		Dispatch( {}, y2col&amp;lt;&amp;lt;getname, ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
		Dispatch(
			{},
			y3col&amp;lt;&amp;lt;getname,
			ScaleBox,
			{Label Row( Show Major Grid( 1 ) )}
		),
		Dispatch( {}, y4col&amp;lt;&amp;lt;getname, ScaleBox, {Label Row( Show Major Grid( 1 ) )} )
	)
);

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12199i875DEA712AB11B71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 08:50:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Grid-line-on-Graph-builder/m-p/70261#M35190</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-28T08:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Grid line on Graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/Grid-line-on-Graph-builder/m-p/70271#M35192</link>
      <description>&lt;P&gt;Thank you gzmorgan0, it works perfectly !!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 10:19:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Grid-line-on-Graph-builder/m-p/70271#M35192</guid>
      <dc:creator>adam</dc:creator>
      <dc:date>2018-08-28T10:19:00Z</dc:date>
    </item>
  </channel>
</rss>

