<?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 by cell in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Color-by-cell/m-p/423913#M67312</link>
    <description>&lt;P&gt;And is it possible to loop this for each column or do i have to make a for loop for each of the columns?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 15:09:46 GMT</pubDate>
    <dc:creator>jearls11</dc:creator>
    <dc:date>2021-10-06T15:09:46Z</dc:date>
    <item>
      <title>Color by cell</title>
      <link>https://community.jmp.com/t5/Discussions/Color-by-cell/m-p/423822#M67301</link>
      <description>&lt;P&gt;for each row(&lt;/P&gt;
&lt;P&gt;Hi folks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to colour my cells by value,&lt;/P&gt;
&lt;P&gt;so if the row is &amp;lt;=&amp;nbsp; 25 red, if &amp;gt; 25 and &amp;lt; 50 orange , if&amp;gt; 50 &amp;lt; 70 yellow.&lt;/P&gt;
&lt;P&gt;and &amp;gt;75 green.&lt;/P&gt;
&lt;P&gt;i am breaking it down to test first and when i run the first 2 arguments, the second condition changes all the rows to orange&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For Each Row(
	If(
		:CDO 4 week Avg &amp;lt;= 25, dt:CDO 4 week Avg &amp;lt;&amp;lt; color cells( "Red", Row() ),
		:CDO 4 week Avg &amp;gt; 25 &amp;lt;= 50,
			dt:CDO 4 week Avg &amp;lt;&amp;lt; color cells( "orange", Row() )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cant understand why I am overwriting the condition and changing all cells colors to orange&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>Fri, 09 Jun 2023 19:58:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Color-by-cell/m-p/423822#M67301</guid>
      <dc:creator>jearls11</dc:creator>
      <dc:date>2023-06-09T19:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Color by cell</title>
      <link>https://community.jmp.com/t5/Discussions/Color-by-cell/m-p/423827#M67302</link>
      <description>&lt;P&gt;Second comparison seems wrong.&lt;/P&gt;&lt;P&gt;Try changing:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:CDO 4 week Avg &amp;gt; 25 &amp;lt;=50,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;25 &amp;lt; :CDO 4 week Avg &amp;lt;=50,&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Oct 2021 10:19:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Color-by-cell/m-p/423827#M67302</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-10-06T10:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Color by cell</title>
      <link>https://community.jmp.com/t5/Discussions/Color-by-cell/m-p/423913#M67312</link>
      <description>&lt;P&gt;And is it possible to loop this for each column or do i have to make a for loop for each of the columns?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 15:09:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Color-by-cell/m-p/423913#M67312</guid>
      <dc:creator>jearls11</dc:creator>
      <dc:date>2021-10-06T15:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Color by cell</title>
      <link>https://community.jmp.com/t5/Discussions/Color-by-cell/m-p/423923#M67315</link>
      <description>&lt;P&gt;Here is a simple example of coloring cells across multiple columns, without having to process the cells row by row.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1633533845201.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36353i23838B3A2430885C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1633533845201.png" alt="txnelson_0-1633533845201.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
// Open Data Table: Blood Pressure.jmp
// → Data Table( "Blood Pressure" )
dt = Open( "$SAMPLE_DATA/Blood Pressure.jmp" );

For( i = 3, i &amp;lt;= N Cols( dt ), i++,
	theRows = dt &amp;lt;&amp;lt; get rows where( As Column( dt, i ) &amp;gt; 180 );
	Column( dt, i ) &amp;lt;&amp;lt; color cells( "red", theRows );
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 15:24:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Color-by-cell/m-p/423923#M67315</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-10-06T15:24:22Z</dc:date>
    </item>
  </channel>
</rss>

