<?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 Color specific column by JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Color-specific-column-by-JSL/m-p/604289#M80716</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;I tried to color in red the value "The First Bin Fail" in column "FIRST_BIN".&amp;nbsp;&lt;/P&gt;&lt;P&gt;and JSL colored all the table in red&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can you explain where I did go wrong in my script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select where ( :FIRST_BIN&amp;nbsp;== "The first Bin Fail") &amp;lt;&amp;lt; Color Cells ("Light Red");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Provide a table how I need to color it:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dennisbur_0-1677140294466.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50378i98C81D923E60A1E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dennisbur_0-1677140294466.png" alt="Dennisbur_0-1677140294466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 16:33:51 GMT</pubDate>
    <dc:creator>Dennisbur</dc:creator>
    <dc:date>2023-06-08T16:33:51Z</dc:date>
    <item>
      <title>Color specific column by JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Color-specific-column-by-JSL/m-p/604289#M80716</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I tried to color in red the value "The First Bin Fail" in column "FIRST_BIN".&amp;nbsp;&lt;/P&gt;&lt;P&gt;and JSL colored all the table in red&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can you explain where I did go wrong in my script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select where ( :FIRST_BIN&amp;nbsp;== "The first Bin Fail") &amp;lt;&amp;lt; Color Cells ("Light Red");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Provide a table how I need to color it:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dennisbur_0-1677140294466.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50378i98C81D923E60A1E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dennisbur_0-1677140294466.png" alt="Dennisbur_0-1677140294466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:33:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Color-specific-column-by-JSL/m-p/604289#M80716</guid>
      <dc:creator>Dennisbur</dc:creator>
      <dc:date>2023-06-08T16:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Color specific column by JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Color-specific-column-by-JSL/m-p/604335#M80719</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/45747"&gt;@Dennisbur&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not an expert in JSL, but this looks more like setting a column property related to this value, and then apply Color cell by value :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Change column property: FIRST_BIN

Data Table( "Untitled" ):FIRST_BIN &amp;lt;&amp;lt; Set Property(
	"Value Colors",
	{"The first Bin Fail" = -13912408}
);
Wait( 1 );
:FIRST_BIN &amp;lt;&amp;lt; Color Cell by Value( 1 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There might be some improvement and changes (color, datatable name, ...) to do with this code, in order to better handle missing values or other possible values, but it does color in red those cell values :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1677148668326.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50380i91CFADE4AE86F7B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1677148668326.png" alt="Victor_G_0-1677148668326.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I hope this will help you.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 10:39:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Color-specific-column-by-JSL/m-p/604335#M80719</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2023-02-23T10:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Color specific column by JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Color-specific-column-by-JSL/m-p/604415#M80721</link>
      <description>&lt;P&gt;Scripting index has quite good examples on how to use &amp;lt;&amp;lt; Color cells (it is used to color &lt;STRONG&gt;specific rows&lt;/STRONG&gt; in &lt;STRONG&gt;specific column&lt;/STRONG&gt;). Below is a slight modification from an example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
rows_to_color = dt &amp;lt;&amp;lt; Get Rows Where(:age == 13);
wait(1);
Column(dt, "age") &amp;lt;&amp;lt; Color Cells("Red", rows_to_color);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Using Value Colors column property is also a good option like &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11568"&gt;@Victor_G&lt;/a&gt; suggested&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 12:50:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Color-specific-column-by-JSL/m-p/604415#M80721</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-02-23T12:50:18Z</dc:date>
    </item>
  </channel>
</rss>

