<?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 Interactive HTML with filter in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-with-filter/m-p/246773#M48455</link>
    <description>&lt;P&gt;I am able to create an interactive HTML using "save Interactive HTML". However, when I add a filter, it does not create the filter in the HTML, just gives me the plot. Is there something I am missing?&lt;BR /&gt;&lt;BR /&gt;My sample code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
a = Variability Chart(
	Y( :height ),
	X( :age ),
	Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
	Connect Cell Means( 1 ),
	Std Dev Chart( 0 ),
	Points Jittered( 1 ),
	AIAG Labels( 0 ),
	SendToReport(
		Dispatch( {}, "Variability Gauge", OutlineBox, {Set Title( "VariabilityChart" )} ),
		Dispatch( {}, "Variability Chart for height", OutlineBox, {Set Title( "" )} ),
		Dispatch( {"Variability Chart for height"}, "Variability Chart", FrameBox, {Frame Size( 845, 274 )} )
	),
	Local Data Filter(
		Add Filter( columns( :Name( "SEX" ) ), Display( :Name( "SEX" ), Size( 278, 165 ), List Display ) )
	)
);
a &amp;lt;&amp;lt; Save Interactive HTML( path || "Filter.html" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is what I want&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sac_0-1581360420991.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21685i256371687AB7E57B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sac_0-1581360420991.png" alt="sac_0-1581360420991.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I get&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sac_1-1581360458218.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21686iE33FC62E6E449859/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sac_1-1581360458218.png" alt="sac_1-1581360458218.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2020 12:34:09 GMT</pubDate>
    <dc:creator>sac</dc:creator>
    <dc:date>2020-02-11T12:34:09Z</dc:date>
    <item>
      <title>Interactive HTML with filter</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-with-filter/m-p/246773#M48455</link>
      <description>&lt;P&gt;I am able to create an interactive HTML using "save Interactive HTML". However, when I add a filter, it does not create the filter in the HTML, just gives me the plot. Is there something I am missing?&lt;BR /&gt;&lt;BR /&gt;My sample code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
a = Variability Chart(
	Y( :height ),
	X( :age ),
	Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
	Connect Cell Means( 1 ),
	Std Dev Chart( 0 ),
	Points Jittered( 1 ),
	AIAG Labels( 0 ),
	SendToReport(
		Dispatch( {}, "Variability Gauge", OutlineBox, {Set Title( "VariabilityChart" )} ),
		Dispatch( {}, "Variability Chart for height", OutlineBox, {Set Title( "" )} ),
		Dispatch( {"Variability Chart for height"}, "Variability Chart", FrameBox, {Frame Size( 845, 274 )} )
	),
	Local Data Filter(
		Add Filter( columns( :Name( "SEX" ) ), Display( :Name( "SEX" ), Size( 278, 165 ), List Display ) )
	)
);
a &amp;lt;&amp;lt; Save Interactive HTML( path || "Filter.html" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is what I want&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sac_0-1581360420991.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21685i256371687AB7E57B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sac_0-1581360420991.png" alt="sac_0-1581360420991.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I get&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sac_1-1581360458218.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21686iE33FC62E6E449859/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sac_1-1581360458218.png" alt="sac_1-1581360458218.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 12:34:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-HTML-with-filter/m-p/246773#M48455</guid>
      <dc:creator>sac</dc:creator>
      <dc:date>2020-02-11T12:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive HTML with filter</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-with-filter/m-p/246954#M48481</link>
      <description>&lt;P&gt;The problem is that putting a filter into the HTML, and making it work would require the html to recalculate the data for the graph. If you happened to have JMP Live, then you could publish this figure to the JMP Live server, and then when you change the filter, an instance of JMP on the Live server would do this for you. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;kind of like this:&lt;/P&gt;
&lt;P&gt;&lt;A title="nCoV-2019 Bubble Plot" href="https://devlive15.jmp.com/packages/Coronavirus-2019-nCoV-Global-Cases-02-10/js-p/L2GP75YdZpS4_9j7xm709" target="_blank" rel="noopener"&gt;Example HTML figure with a filter&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another approach is to make tabs with each level of the filter&amp;nbsp;&lt;/P&gt;
&lt;P&gt;kind of like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://devlive15.jmp.com/packages/PCA-Model-Driven-Multivariate-Control-Ch/js-p/KyxmPyQ9QFcZ43r15jSpT" target="_blank" rel="noopener"&gt;figure with tab boxes&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;note: the tab boxes are over the run chart at the bottom of the "dashboard".&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 11:56:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-HTML-with-filter/m-p/246954#M48481</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2020-02-11T11:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive HTML with filter</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-with-filter/m-p/247038#M48499</link>
      <description>&lt;P&gt;If I run this script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

		vc = dt &amp;lt;&amp;lt; Variability Chart(
			Y( :NPN1 ),
			X( :lot_id, :SITE ),
			Local Data Filter(
				Add Filter( columns( :wafer ), Display( :wafer, Size( 161, 255 ), Height( 255 ) ) )
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then interactively go to&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; File=&amp;gt;Save As&lt;/P&gt;
&lt;P&gt;and save the file as an Interactive HTML With Data, or if one goes to&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; File=&amp;gt; Export=&amp;gt; HTML with Data&lt;/P&gt;
&lt;P&gt;I get the following HTML&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="withdata.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21704i35084155027992EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="withdata.PNG" alt="withdata.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But I can not find a JSL function that can do the same.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 19:05:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-HTML-with-filter/m-p/247038#M48499</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-02-11T19:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive HTML with filter</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-with-filter/m-p/247319#M48542</link>
      <description>&lt;P&gt;Thanks to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;&amp;nbsp;for supplying an answer here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/td-p/58163" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/Missing-Local-Data-Filter-in-quot-Save-Interactive-HTML-quot/td-p/58163&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Just replace:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;a &amp;lt;&amp;lt; Save Interactive HTML( path || "Filter.html" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;with&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;tr = a &amp;lt;&amp;lt; Top Report;
tr &amp;lt;&amp;lt; Save Interactive HTML( path || "Filter.html" );&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that when saved this way rather than published to JMP Live or JMP Public, the Local Data Filter will act as though you turned off the Include option.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="John_Powell_JMP_0-1581531438630.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21720i9DCE474C8321D76C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="John_Powell_JMP_0-1581531438630.png" alt="John_Powell_JMP_0-1581531438630.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So you might as well turn it off in the script by adding Mode( include( 0 )) to the Local Data Filter definition as shown here:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local Data Filter(
		Width( 278 ),
		Mode( Include( 0 ) ),
		Add Filter(
			columns( :sex ),
			Where( :sex == "M" ),
			Display( :sex, Size( 272, 168 ), Height( 168 ), "List Display" )
		)
	),&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I hope that helps.&lt;/P&gt;
&lt;P&gt;~John&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 18:17:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-HTML-with-filter/m-p/247319#M48542</guid>
      <dc:creator>John_Powell_JMP</dc:creator>
      <dc:date>2020-02-12T18:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive HTML with filter</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-with-filter/m-p/247323#M48543</link>
      <description>&lt;P&gt;Those are great examples, Byron!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 18:19:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-HTML-with-filter/m-p/247323#M48543</guid>
      <dc:creator>John_Powell_JMP</dc:creator>
      <dc:date>2020-02-12T18:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive HTML with filter</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-HTML-with-filter/m-p/247543#M48588</link>
      <description>Just to underline what John said: This way of using local data filter will only have the show functionality, it does not recalculate the resulting graphs or statistics, like lines or profiler or mean .... If that is what you need JMP live is the right tool to go for when publishing to the web.&lt;BR /&gt;Thanks John for this example!</description>
      <pubDate>Fri, 14 Feb 2020 11:32:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-HTML-with-filter/m-p/247543#M48588</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2020-02-14T11:32:14Z</dc:date>
    </item>
  </channel>
</rss>

