<?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 I auto scale axis from different platforms with a single local filter on a combined page in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-auto-scale-axis-from-different-platforms-with-a-single/m-p/43998#M25384</link>
    <description>Brilliant Jim, very much appreciated!</description>
    <pubDate>Thu, 07 Sep 2017 07:35:47 GMT</pubDate>
    <dc:creator>Niall</dc:creator>
    <dc:date>2017-09-07T07:35:47Z</dc:date>
    <item>
      <title>How can I auto scale axis from different platforms with a single local filter on a combined page</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-auto-scale-axis-from-different-platforms-with-a-single/m-p/43974#M25370</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I'm just starting out working with dashboards, and local filters, but I'm having some difficulties. I'm trying to generate a single page summary of a routine bit of analysis for me. I can create the window with the elements I'd want and the filter works across the various platforms (2xOneway and 1xBivariate graphs) in terms of the data that's displayed in each graph, however the Axis on the 2xOneway graph rescales with changes to the local filter, but the Bivariate doesen't - is there a way to get the Bivariate graph to also re-scale when I change the local filter selection? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my section of code to create the combined window ( I'm not a coder so it might not be pretty!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = new window( "DASHBORAD DEVELOPMENT",
	Data Filter Context Box(
		V List Box(
			H List Box(
				Current Data Table() &amp;lt;&amp;lt; Data Filter(
					Conditional,
					Local,
					Add Filter(
						columns( :PRODUCTION_LINE, :PRESS_ID, :AREA_ID, :METROLOGY_FLAG, :Desport_Flag),
						Display( :AREA_ID, Size( 160, 75 ), List Display ),
						Display( :PRESS_ID, Size( 143, 30 ), List Display )
					)
				),
				Oneway(
					Y( :HEIGHT),
					X( :MACH ),
					Automatic Recalc( 1 ),
					Means( 1 ),
					Mean Diamonds( 1 ),
					SendToReport(
						Dispatch( {}, "Oneway Anova", OutlineBox, {Close( 1 )} )
					)
				),
				Oneway(
					Y( :HEIGHT),
					X( :OPERATOR),
					Automatic Recalc( 1 ),
					Means( 1 ),
					Mean Diamonds( 1 ),
					SendToReport(
						Dispatch( {}, "Oneway Anova", OutlineBox, {Close( 1 )} )
					)
				)
			),
			Bivariate(
				Y( :HEIGHT ),
				X( :PRODUCTION_DATE),
				Automatic Recalc( 1 ),
				SendToReport(
					Dispatch(
						{},
						"Bivar Plot",
						FrameBox,
						{Frame Size( 1018, 240 )
						}
					)
				)
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Apologies in advance if this is something very basic that I'm missing!&lt;/P&gt;&lt;P&gt;Niall&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 09:51:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-auto-scale-axis-from-different-platforms-with-a-single/m-p/43974#M25370</guid>
      <dc:creator>Niall</dc:creator>
      <dc:date>2017-09-06T09:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I auto scale axis from different platforms with a single local filter on a combined page</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-auto-scale-axis-from-different-platforms-with-a-single/m-p/43975#M25371</link>
      <description>&lt;P&gt;The method that I have used to do this is that I would add to your Oneway Platform an&amp;nbsp; &amp;lt;&amp;lt; Add Graphics Script() &amp;nbsp;that checks to see if the Y Origin() or Y Range() has changed, and then if it has, then &amp;lt;&amp;lt; Copy Axis Settings from the Y axis and then &amp;lt;&amp;lt; Paste Axis Settings to the Y axies on the Bivariate Platform.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );

nw = New Window( "DASHBORAD DEVELOPMENT",
	originHold = 0;
	originRange = 0;
	Data Filter Context Box(
		V List Box(
			H List Box(
				Current Data Table() &amp;lt;&amp;lt; Data Filter( Conditional, Local, Add Filter( columns( :Age, :Weight ) ) ),
				ow1 = dt &amp;lt;&amp;lt; Oneway(
					Y( :HEIGHT ),
					X( :Sex ),
					Automatic Recalc( 1 ),
					Means( 1 ),
					Mean Diamonds( 1 ),
					SendToReport( Dispatch( {}, "Oneway Anova", OutlineBox, {Close( 1 )} ) )
				),
				ow2 = dt &amp;lt;&amp;lt; Oneway(
					Y( :HEIGHT ),
					X( :Age ),
					Automatic Recalc( 1 ),
					Means( 1 ),
					Mean Diamonds( 1 ),
					SendToReport( Dispatch( {}, "Oneway Anova", OutlineBox, {Close( 1 )} ) )
				)
			),
			biv = dt &amp;lt;&amp;lt; Bivariate(
				Y( :HEIGHT ),
				X( :Weight ),
				Automatic Recalc( 1 ),
				SendToReport( Dispatch( {}, "Bivar Plot", FrameBox, {Frame Size( 1018, 240 )} ) )
			)
		)
	);
);
Report( ow1 )[Frame Box( 1 )] &amp;lt;&amp;lt; Add Graphics Script(
	If( originHold != Y Origin() | rangeHold != Y Range(),
		originHold = Y Origin();
		rangeHold = Y Range();
		Report( ow1 )[Axis Box( 1 )] &amp;lt;&amp;lt; Copy Axis Settings;
		Try( Report( biv )[Axis Box( 1 )] &amp;lt;&amp;lt; Paste Axis Settings );
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Sep 2017 12:17:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-auto-scale-axis-from-different-platforms-with-a-single/m-p/43975#M25371</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-09-06T12:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I auto scale axis from different platforms with a single local filter on a combined page</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-auto-scale-axis-from-different-platforms-with-a-single/m-p/43981#M25373</link>
      <description>Jim,&lt;BR /&gt;Firstly thanks for the reply, it's very much appreciated! This works&lt;BR /&gt;perfectly for the case I asked about.&lt;BR /&gt;&lt;BR /&gt;Is it possible to use the same sort of approach (Add Graphics Script) when&lt;BR /&gt;using append() to add a section to an existing open window? I've tried to&lt;BR /&gt;include it in the append function but it gives me back an error?&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Sep 2017 14:50:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-auto-scale-axis-from-different-platforms-with-a-single/m-p/43981#M25373</guid>
      <dc:creator>Niall</dc:creator>
      <dc:date>2017-09-06T14:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I auto scale axis from different platforms with a single local filter on a combined page</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-auto-scale-axis-from-different-platforms-with-a-single/m-p/43987#M25378</link>
      <description>&lt;P&gt;Here is a modification to the script I sent you with a nosensical &amp;nbsp;append added to the add graphics script. &amp;nbsp;It is nonsensical, but it works&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );

nw = New Window( "DASHBORAD DEVELOPMENT",
	originHold = 0;
	originRange = 0;
	Data Filter Context Box(
		V List Box(
			H List Box(
				Current Data Table() &amp;lt;&amp;lt; Data Filter( Conditional, Local, Add Filter( columns( :Age, :Weight ) ) ),
				ow1 = dt &amp;lt;&amp;lt; Oneway(
					Y( :HEIGHT ),
					X( :Sex ),
					Automatic Recalc( 1 ),
					Means( 1 ),
					Mean Diamonds( 1 ),
					SendToReport( Dispatch( {}, "Oneway Anova", OutlineBox, {Close( 1 )} ) )
				),
				ow2 = dt &amp;lt;&amp;lt; Oneway(
					Y( :HEIGHT ),
					X( :Age ),
					Automatic Recalc( 1 ),
					Means( 1 ),
					Mean Diamonds( 1 ),
					SendToReport( Dispatch( {}, "Oneway Anova", OutlineBox, {Close( 1 )} ) )
				)
			),
			biv = dt &amp;lt;&amp;lt; Bivariate(
				Y( :HEIGHT ),
				X( :Weight ),
				Automatic Recalc( 1 ),
				SendToReport( Dispatch( {}, "Bivar Plot", FrameBox, {Frame Size( 1018, 240 )} ) )
			)
		)
	);
);
Report( ow1 )[Frame Box( 1 )] &amp;lt;&amp;lt; Add Graphics Script(
	If( originHold != Y Origin() | rangeHold != Y Range(),
		originHold = Y Origin();
		rangeHold = Y Range();
		Report( ow1 )[Axis Box( 1 )] &amp;lt;&amp;lt; Copy Axis Settings;
		Try( Report( biv )[Axis Box( 1 )] &amp;lt;&amp;lt; Paste Axis Settings );
		Report( biv )[Outline Box( 1 )] &amp;lt;&amp;lt; append( text box("Changed " || char(originHold)))
	);
	
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Sep 2017 18:49:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-auto-scale-axis-from-different-platforms-with-a-single/m-p/43987#M25378</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-09-06T18:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I auto scale axis from different platforms with a single local filter on a combined page</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-auto-scale-axis-from-different-platforms-with-a-single/m-p/43998#M25384</link>
      <description>Brilliant Jim, very much appreciated!</description>
      <pubDate>Thu, 07 Sep 2017 07:35:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-auto-scale-axis-from-different-platforms-with-a-single/m-p/43998#M25384</guid>
      <dc:creator>Niall</dc:creator>
      <dc:date>2017-09-07T07:35:47Z</dc:date>
    </item>
  </channel>
</rss>

