<?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: Color cells by specific condition in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Color-cells-by-specific-condition/m-p/712837#M89617</link>
    <description>&lt;P&gt;Examining the issue, using the Scripting Index, there does not seem to be any "Color Cells" syntax that permits the coloring of cells for more than one column using JSL.&amp;nbsp; There is a syntax for "Color Cells" that is used in conjunction with the Identifying of Outliers platform.&lt;/P&gt;
&lt;P&gt;Therefore, the sample JSL you listed is the only method I know of to color the cells as you want.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Dec 2023 03:46:04 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2023-12-29T03:46:04Z</dc:date>
    <item>
      <title>Color cells by specific condition</title>
      <link>https://community.jmp.com/t5/Discussions/Color-cells-by-specific-condition/m-p/712813#M89614</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new for JSL.&lt;/P&gt;&lt;P&gt;I want the cell to change color based on specific condition.&lt;/P&gt;&lt;P&gt;for example, I want :dIGSS&amp;gt;5 get red color.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Get Rows Where(:dIGSS&amp;gt;5);
:dIGSS &amp;lt;&amp;lt; Color Cells(3);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But all dIGSS rows change to red.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found an example which can change cell's color based on specific condition, but it is for each column:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For Each({colname}, dt &amp;lt;&amp;lt; Get Column Names("String"),
 rows_to_color = dt &amp;lt;&amp;lt; Get Rows Where((Column(dt, colname)[]&amp;gt;5));
 Column(dt, colname) &amp;lt;&amp;lt; Color Cells("Red", rows_to_color);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How can I do?&lt;/P&gt;&lt;P&gt;I have version 17.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 01:53:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Color-cells-by-specific-condition/m-p/712813#M89614</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2023-12-29T01:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Color cells by specific condition</title>
      <link>https://community.jmp.com/t5/Discussions/Color-cells-by-specific-condition/m-p/712837#M89617</link>
      <description>&lt;P&gt;Examining the issue, using the Scripting Index, there does not seem to be any "Color Cells" syntax that permits the coloring of cells for more than one column using JSL.&amp;nbsp; There is a syntax for "Color Cells" that is used in conjunction with the Identifying of Outliers platform.&lt;/P&gt;
&lt;P&gt;Therefore, the sample JSL you listed is the only method I know of to color the cells as you want.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 03:46:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Color-cells-by-specific-condition/m-p/712837#M89617</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-12-29T03:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Color cells by specific condition</title>
      <link>https://community.jmp.com/t5/Discussions/Color-cells-by-specific-condition/m-p/712872#M89626</link>
      <description>&lt;P&gt;You can provide Color Cells with list of rows numbers (or matrix) and you can then use that (basically remove loop from your second example)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rows_to_color = dt &amp;lt;&amp;lt; Get Rows Where(:dIGSS &amp;gt; 5));
:dIGSS &amp;lt;&amp;lt; Color Cells("Red", rows_to_color);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See example 2 (and 3 if you need multiple colors) from Scripting Index for Color Cells&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1703854434383.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60123i64EAE6986B2C87D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1703854434383.png" alt="jthi_0-1703854434383.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;Corrected text "You can provide Color Cells with list of columns" to "You can provide Color Cells with list of row numbers"&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 08:38:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Color-cells-by-specific-condition/m-p/712872#M89626</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-01-09T08:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Color cells by specific condition</title>
      <link>https://community.jmp.com/t5/Discussions/Color-cells-by-specific-condition/m-p/713076#M89650</link>
      <description>&lt;P&gt;Thanks! This is exactly what I need.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 01:28:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Color-cells-by-specific-condition/m-p/713076#M89650</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2024-01-02T01:28:17Z</dc:date>
    </item>
  </channel>
</rss>

