<?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: Coloring selective cells in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/82590#M37201</link>
    <description>Hi,&lt;BR /&gt;I am also trying to color cells with a slight variation.&lt;BR /&gt;I have a row in .csv which is colored yellow.But after importing the color vanishes.&lt;BR /&gt;&lt;BR /&gt;So trying to color that row in jsl using following code.But doesnt seem to work -&lt;BR /&gt;dinout &amp;lt;&amp;lt; Select Rows( [40] );&lt;BR /&gt;&amp;lt;&amp;lt;color cells(Yellow);&lt;BR /&gt;&lt;BR /&gt;Any inputs ?&lt;BR /&gt;&lt;BR /&gt;thanks</description>
    <pubDate>Mon, 05 Nov 2018 20:23:23 GMT</pubDate>
    <dc:creator>ENTHU</dc:creator>
    <dc:date>2018-11-05T20:23:23Z</dc:date>
    <item>
      <title>Coloring selective cells</title>
      <link>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/17807#M16232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, how do I color the cells red for values that are lower than the limits? Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt = New Table( "Marks",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Add Rows( 2 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "Name", Character, Nominal, Set Values( {"Peter", "Leslie"} ) ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "Limits",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Numeric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Continuous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format( "Best", 12 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Values( [20, 30] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "Column 1",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Numeric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Continuous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format( "Best", 12 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Values( [10, 15] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "Column 2",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Numeric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Continuous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format( "Best", 12 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Values( [30, 40] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "Column 3",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Numeric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Continuous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format( "Best", 12 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Values( [20, 55] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "Column 4",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Numeric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Continuous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format( "Best", 12 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Values( [53, 24] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Row States( [0, 1] )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fail = dt &amp;lt;&amp;lt; Get Rows Where( :Column 1 &amp;lt; :Limits );&lt;/P&gt;&lt;P&gt;:Column 1 &amp;lt;&amp;lt; color cells(Red, fail);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 07:10:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/17807#M16232</guid>
      <dc:creator>kayne</dc:creator>
      <dc:date>2016-04-04T07:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring selective cells</title>
      <link>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/17808#M16233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax looks right and you're code works well for me in JMP 12 (if inserting a semicolon between &lt;EM&gt;New Table(...)&lt;/EM&gt; and &lt;EM&gt;fail &lt;/EM&gt;). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 10:25:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/17808#M16233</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2016-04-04T10:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring selective cells</title>
      <link>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/17809#M16234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks MS, but the syntax works only on column 1. Are there any ways to make it work for all the columns? My example has only 4 columns but in practice, I'm actually having 200+ so I'm trying to figure out if there are any ways to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 23:52:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/17809#M16234</guid>
      <dc:creator>kayne</dc:creator>
      <dc:date>2016-04-04T23:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring selective cells</title>
      <link>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/17810#M16235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you change your last 2 lines to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: font-family:Consolas; color: #0000dd;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;(i=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: teal;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;,i&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;N Cols&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;(dt),i++,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: font-family:Consolas; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fail = dt &amp;lt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;Get Rows Where&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: color:black;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;as column&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;(dt,i)) &amp;lt; :Limits );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;(dt,i) &amp;lt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: color:navy;"&gt;color cells&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;(Red, fail);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: color:black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: color:black;"&gt;your columns will be changed&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: color:black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 02:09:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/17810#M16235</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-04-05T02:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring selective cells</title>
      <link>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/17811#M16236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jim! That seems to work fine!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 02:36:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/17811#M16236</guid>
      <dc:creator>kayne</dc:creator>
      <dc:date>2016-04-05T02:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring selective cells</title>
      <link>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/41696#M24311</link>
      <description>HI Jim,&lt;BR /&gt;is it possible to apply color gradient to a column for selected rows only?</description>
      <pubDate>Sat, 08 Jul 2017 15:36:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/41696#M24311</guid>
      <dc:creator>ram</dc:creator>
      <dc:date>2017-07-08T15:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring selective cells</title>
      <link>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/41697#M24312</link>
      <description>&lt;P&gt;First add a Value Colors column property, then use the Color Cell by Value( 1 ) message to apply the colors. You can use a gradient as the color theme for the column property.&lt;/P&gt;
&lt;P&gt;See &lt;STRONG&gt;Help&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Scripting Index&lt;/STRONG&gt;, then select &lt;STRONG&gt;Data Table&lt;/STRONG&gt;&amp;nbsp;object &amp;gt; &lt;STRONG&gt;Column Scripting&lt;/STRONG&gt;&amp;nbsp;protocol and finally select &lt;STRONG&gt;Color Cell by Value&lt;/STRONG&gt; message.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jul 2017 16:45:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/41697#M24312</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-07-08T16:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring selective cells</title>
      <link>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/41698#M24313</link>
      <description>&lt;P&gt;Actually, I am not sure about the 'selected rows only' requirement. You might have to compute the associated color value and apply it to specific rows without the value color property.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jul 2017 16:52:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/41698#M24313</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-07-08T16:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring selective cells</title>
      <link>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/41699#M24314</link>
      <description>&lt;P&gt;The color gradient does not honor excluded rows, so the best method that I found(a bit of a kluge) is below. &amp;nbsp;I colors all of the cells, and then comes back and changes to cell color for those colors you want to be changed back. &amp;nbsp;But it does it by placing a cell color on top of the gradient color.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
dt:height &amp;lt;&amp;lt; Set Property( "Color Gradient", {"Blue to Gray to Red"} );
dt:height &amp;lt;&amp;lt; Color Cell by Value;
colorlist = As List( dt &amp;lt;&amp;lt; get rows where( :sex == "F" ) );
dt:height &amp;lt;&amp;lt; color cells( "White", colorlist );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Jul 2017 17:31:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/41699#M24314</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-07-08T17:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring selective cells</title>
      <link>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/82590#M37201</link>
      <description>Hi,&lt;BR /&gt;I am also trying to color cells with a slight variation.&lt;BR /&gt;I have a row in .csv which is colored yellow.But after importing the color vanishes.&lt;BR /&gt;&lt;BR /&gt;So trying to color that row in jsl using following code.But doesnt seem to work -&lt;BR /&gt;dinout &amp;lt;&amp;lt; Select Rows( [40] );&lt;BR /&gt;&amp;lt;&amp;lt;color cells(Yellow);&lt;BR /&gt;&lt;BR /&gt;Any inputs ?&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Mon, 05 Nov 2018 20:23:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/82590#M37201</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2018-11-05T20:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring selective cells</title>
      <link>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/82605#M37204</link>
      <description>&lt;P&gt;You have to color by column.&amp;nbsp; This code will do the trick.&amp;nbsp; The color "73" is a bit lighter than "Yellow"&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for (i = 1, i &amp;lt;= ncols(dinout), i++,
	column(dinout, i) &amp;lt;&amp;lt; Color Cells( {73, {40}} );
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Nov 2018 21:37:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Coloring-selective-cells/m-p/82605#M37204</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-11-05T21:37:28Z</dc:date>
    </item>
  </channel>
</rss>

