Choose Language Hide Translation Bar
Highlighted
wu
wu
Community Trekker

How to color the DATA Table Box (data table) by a Column,(eg. :age)

This the example copied from "Scripting Index".

but How to color the cells based on the column("Age") for the new window, before saving the new window into a image.

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Example", Data Table Box( dt ) );
0 Kudos
1 REPLY 1
Highlighted

Re: How to color the DATA Table Box (data table) by a Column,(eg. :age)

You send the Color Cells message to the data column. The first argument is color specification and the second is the optionally the row number or list of row numbers. If you do not specify the rows, then the current row selection is affected.

 

There is no 'color by' capability. You have to iterate over the unique values in the one column, select matching rows, and assign the next color.

Learn it once, use it forever!
0 Kudos