<?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 to add an interactive Color by Column selection to Graph Builder? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-add-an-interactive-Color-by-Column-selection-to-Graph/m-p/451164#M69809</link>
    <description>&lt;P&gt;&amp;nbsp;I should add that I have well over 100 columns and I want to choose the columns to color by from a small subset&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2022 18:23:30 GMT</pubDate>
    <dc:creator>tim_reeves</dc:creator>
    <dc:date>2022-01-13T18:23:30Z</dc:date>
    <item>
      <title>How to add an interactive Color by Column selection to Graph Builder?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-an-interactive-Color-by-Column-selection-to-Graph/m-p/451145#M69808</link>
      <description>&lt;P&gt;I have a script (in JMP 16.2) that creates a Graph Builder with a column switcher, and I want to add a feature to allow selecting (interactively or up front) a column (or columns) by which to color the points. I've searched and not found an example.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:20:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-an-interactive-Color-by-Column-selection-to-Graph/m-p/451145#M69808</guid>
      <dc:creator>tim_reeves</dc:creator>
      <dc:date>2023-06-11T11:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an interactive Color by Column selection to Graph Builder?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-an-interactive-Color-by-Column-selection-to-Graph/m-p/451164#M69809</link>
      <description>&lt;P&gt;&amp;nbsp;I should add that I have well over 100 columns and I want to choose the columns to color by from a small subset&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 18:23:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-an-interactive-Color-by-Column-selection-to-Graph/m-p/451164#M69809</guid>
      <dc:creator>tim_reeves</dc:creator>
      <dc:date>2022-01-13T18:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an interactive Color by Column selection to Graph Builder?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-an-interactive-Color-by-Column-selection-to-Graph/m-p/451383#M69822</link>
      <description>&lt;P&gt;Not quite sure what you have in mind, but this may get you started:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

nw = NewWindow("Color",
		clb = ColListBox(all, &amp;lt;&amp;lt; ModelingType({"Nominal", "Ordinal"}), maxSelected(1)),
		LineUpBox(NCol(2),
			ButtonBox("OK", OKscript),
			ButtonBox("Cancel", nw &amp;lt;&amp;lt; closeWindow)
		);
);

OKscript =
Expr(

nw &amp;lt;&amp;lt; closeWindow;
colorCol = clb &amp;lt;&amp;lt; getSelected;

gb = dt &amp;lt;&amp;lt; Graph Builder(
					Show Control Panel( 0 ),
					Variables( Y( :height ), Color( Eval(colorCol)) ),
					Elements( Points( Y, Legend( 7 ) ) ),
					Column Switcher( :height, {:height, :weight} )
				);

	);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jan 2022 11:56:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-an-interactive-Color-by-Column-selection-to-Graph/m-p/451383#M69822</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2022-01-14T11:56:00Z</dc:date>
    </item>
  </channel>
</rss>

