<?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: Problem Graph builder second Y axis in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Problem-Graph-builder-second-Y-axis/m-p/642234#M83921</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/48166"&gt;@Julianveda&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I like Jim's answer, but if you are looking for a graph that looks like this instead ...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="John_Powell_JMP_0-1686746835091.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53793i7EC65C5D07B2D953/image-size/large?v=v2&amp;amp;px=999" role="button" title="John_Powell_JMP_0-1686746835091.png" alt="John_Powell_JMP_0-1686746835091.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;... you need to drag the Position variable onto the X axis twice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;~John&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Here's the script for the graph above.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open( "$SAMPLE_DATA/Football.jmp" ) &amp;lt;&amp;lt;
Graph Builder(
	Size( 413, 246 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Position ),
		X( :Position ),
		Y( :Weight, Side( "Right" ) ),
		Y( :Height, Position( 1 ) )
	),
	Elements( Position( 1, 1 ), Bar( X, Y( 2 ), Legend( 70 ) ) ),
	Elements( Position( 2, 1 ), Bar( X, Y( 1 ), Legend( 73 ) ) ),
	SendToReport(
		Dispatch( {}, "Weight", ScaleBox,
			{Min( 0 ), Max( 296.774225863422 ), Inc( 50 ), Minor Ticks( 0 )
			}
		),
		Dispatch( {}, "graph title", TextEditBox,
			{Set Text( "Mean(Height) &amp;amp; Mean(Weight) vs. Position" )}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 12:54:25 GMT</pubDate>
    <dc:creator>John_Powell_JMP</dc:creator>
    <dc:date>2023-06-14T12:54:25Z</dc:date>
    <item>
      <title>Problem Graph builder second Y axis</title>
      <link>https://community.jmp.com/t5/Discussions/Problem-Graph-builder-second-Y-axis/m-p/642086#M83908</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having trouble trying to create a second Y axis for a bar chart representation. I already followed the procedure explained in other discussions (select Y variables and move right), but the results for the case of bar charts are not good. Please see the picture below and you'll see that the variable I moved right is either behind or in front of the bars from the left Y axis, but I need them to be next to each other.&lt;/P&gt;&lt;P&gt;Could you help me in solving this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julianveda_0-1686728856619.png" style="width: 445px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53786i8A318888074F34CB/image-dimensions/445x294?v=v2" width="445" height="294" role="button" title="Julianveda_0-1686728856619.png" alt="Julianveda_0-1686728856619.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reading.&lt;/P&gt;&lt;P&gt;Julian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 07:49:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Problem-Graph-builder-second-Y-axis/m-p/642086#M83908</guid>
      <dc:creator>Julianveda</dc:creator>
      <dc:date>2023-06-14T07:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Graph builder second Y axis</title>
      <link>https://community.jmp.com/t5/Discussions/Problem-Graph-builder-second-Y-axis/m-p/642191#M83919</link>
      <description>&lt;P&gt;You can get the separation if you use an Overlay column.&amp;nbsp; If that Overlay column follows the left and right specification, you will get the bars fully displayed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1686743937704.png" style="width: 710px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53791i410FA626B14CD9BB/image-dimensions/710x497?v=v2" width="710" height="497" role="button" title="txnelson_0-1686743937704.png" alt="txnelson_0-1686743937704.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The above chart required the data table to be modified.&amp;nbsp; The Height and Weight need to be identified by an overlay column.&amp;nbsp; The way I do this, is to copy all of the Weight data into new rows, and to set all of the Weight data in the original rows to missing.&amp;nbsp; Then I added a new column called Group which has the value 1 for the original rows, and a 2 for the new rows.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1686744526220.png" style="width: 885px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53792i309A0AEC79D6A3BA/image-dimensions/885x843?v=v2" width="885" height="843" role="button" title="txnelson_1-1686744526220.png" alt="txnelson_1-1686744526220.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 12:09:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Problem-Graph-builder-second-Y-axis/m-p/642191#M83919</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-06-14T12:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Graph builder second Y axis</title>
      <link>https://community.jmp.com/t5/Discussions/Problem-Graph-builder-second-Y-axis/m-p/642234#M83921</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/48166"&gt;@Julianveda&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I like Jim's answer, but if you are looking for a graph that looks like this instead ...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="John_Powell_JMP_0-1686746835091.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53793i7EC65C5D07B2D953/image-size/large?v=v2&amp;amp;px=999" role="button" title="John_Powell_JMP_0-1686746835091.png" alt="John_Powell_JMP_0-1686746835091.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;... you need to drag the Position variable onto the X axis twice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;~John&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Here's the script for the graph above.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open( "$SAMPLE_DATA/Football.jmp" ) &amp;lt;&amp;lt;
Graph Builder(
	Size( 413, 246 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Position ),
		X( :Position ),
		Y( :Weight, Side( "Right" ) ),
		Y( :Height, Position( 1 ) )
	),
	Elements( Position( 1, 1 ), Bar( X, Y( 2 ), Legend( 70 ) ) ),
	Elements( Position( 2, 1 ), Bar( X, Y( 1 ), Legend( 73 ) ) ),
	SendToReport(
		Dispatch( {}, "Weight", ScaleBox,
			{Min( 0 ), Max( 296.774225863422 ), Inc( 50 ), Minor Ticks( 0 )
			}
		),
		Dispatch( {}, "graph title", TextEditBox,
			{Set Text( "Mean(Height) &amp;amp; Mean(Weight) vs. Position" )}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 12:54:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Problem-Graph-builder-second-Y-axis/m-p/642234#M83921</guid>
      <dc:creator>John_Powell_JMP</dc:creator>
      <dc:date>2023-06-14T12:54:25Z</dc:date>
    </item>
  </channel>
</rss>

