<?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 Can I get local data filter selected x-axis parameters (in graph builder) in a list? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Can-I-get-local-data-filter-selected-x-axis-parameters-in-graph/m-p/688080#M87371</link>
    <description>&lt;P&gt;I want to get the x-axis parameters (in graph builder) selected by my local data filter selection as a list to use in another script. Is it possible to do this via JSL?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 16:39:38 GMT</pubDate>
    <dc:creator>Neo</dc:creator>
    <dc:date>2023-10-17T16:39:38Z</dc:date>
    <item>
      <title>Can I get local data filter selected x-axis parameters (in graph builder) in a list?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-get-local-data-filter-selected-x-axis-parameters-in-graph/m-p/688080#M87371</link>
      <description>&lt;P&gt;I want to get the x-axis parameters (in graph builder) selected by my local data filter selection as a list to use in another script. Is it possible to do this via JSL?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 16:39:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-get-local-data-filter-selected-x-axis-parameters-in-graph/m-p/688080#M87371</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-10-17T16:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get local data filter selected x-axis parameters (in graph builder) in a list?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-get-local-data-filter-selected-x-axis-parameters-in-graph/m-p/688098#M87374</link>
      <description>&lt;P&gt;Yes. You can use for example &amp;lt;&amp;lt; Get Filtered Rows and then select the values of interest based on those from the correct column (when nothing is being filtered it is a special case you might have to take care of).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Cities.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(534, 456),
	Show Control Panel(0),
	Variables(X(:Latitude), Y(:POP)),
	Elements(Points(X, Y, Legend(7)), Smoother(X, Y, Legend(8)))
);

f = gb &amp;lt;&amp;lt; Local Data Filter(
	Add Filter(
		columns(:city),
		Where(
			:city == {"ALBANY", "ALBUQUERQUE", "ATLANTA", "ATLANTIC CITY",
			"BALTIMORE", "BOSTON", "BURLINGTON"}
		),
		Display(:city, N Items(15), Find(Set Text("")))
	)
);

f &amp;lt;&amp;lt; get filtered rows;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Oct 2023 17:05:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-get-local-data-filter-selected-x-axis-parameters-in-graph/m-p/688098#M87374</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-17T17:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get local data filter selected x-axis parameters (in graph builder) in a list?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-get-local-data-filter-selected-x-axis-parameters-in-graph/m-p/688107#M87375</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Thanks.&lt;/P&gt;&lt;P&gt;This gives the row index. How to get the the actual Latitudes (loop the column through f)?&lt;/P&gt;&lt;P&gt;Secondly how to get new 'f' values should the local data filter selection be changed by the user (I am thinking filter change handler, but never got to get it to work as desired),?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 17:27:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-get-local-data-filter-selected-x-axis-parameters-in-graph/m-p/688107#M87375</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-10-17T17:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get local data filter selected x-axis parameters (in graph builder) in a list?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-get-local-data-filter-selected-x-axis-parameters-in-graph/m-p/688112#M87376</link>
      <description>&lt;P&gt;&amp;lt;&amp;lt; Get Filtered Rows returns you a matrix of selected rows, you can use this matrix to access values in table (and columns). One option is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Latitude[f &amp;lt;&amp;lt; get filtered rows];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Data table subscripting" uid="21013" url="https://community.jmp.com/t5/Uncharted/Data-table-subscripting/m-p/21013#U21013" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; can also be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know what you are doing so it is a bit difficult to give advice on second question (filter change handler or using a button most likely).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Cities.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(534, 456),
	Show Control Panel(0),
	Variables(X(:Latitude), Y(:POP)),
	Elements(Points(X, Y, Legend(7)), Smoother(X, Y, Legend(8)))
);

f = gb &amp;lt;&amp;lt; Local Data Filter(
	Add Filter(
		columns(:city),
		Where(
			:city == {"ALBANY", "ALBUQUERQUE", "ATLANTA", "ATLANTIC CITY",
			"BALTIMORE", "BOSTON", "BURLINGTON"}
		),
		Display(:city, N Items(15), Find(Set Text("")))
	)
);

filter_f = Function({a}, show(:Latitude[f &amp;lt;&amp;lt; get filtered rows]));
rs = f &amp;lt;&amp;lt; Make Filter Change Handler(filter_f);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Oct 2023 17:38:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-get-local-data-filter-selected-x-axis-parameters-in-graph/m-p/688112#M87376</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-17T17:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get local data filter selected x-axis parameters (in graph builder) in a list?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-get-local-data-filter-selected-x-axis-parameters-in-graph/m-p/688193#M87388</link>
      <description>&lt;P&gt;You can also retrieve the specifics of the X and Y axes, by requesting to get the Min, Max, Incr.&amp;nbsp; Here is a modification that retrieves the Maximum value of the Y axis&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;filter_f = Function({a}, show(:Latitude[f &amp;lt;&amp;lt; get filtered rows]);
	show("Max", report(gb)[axisbox(2)]&amp;lt;&amp;lt;get max)
);
rs = f &amp;lt;&amp;lt; Make Filter Change Handler(filter_f);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Oct 2023 23:40:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-get-local-data-filter-selected-x-axis-parameters-in-graph/m-p/688193#M87388</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-10-17T23:40:29Z</dc:date>
    </item>
  </channel>
</rss>

