I'm trying to color a shapeseg by the average of the contents of its row states (think graph builder). If there are two contrasting values in the row states, it just doesn't color it however.
Has anyone every had any luck doing this?
Names default to here(1);
dt = open("$SAMPLE_DATA\Big Class.jmp");
ss = Shape Seg(
{Path( [10 10 1, 10 70 0, 70 70 0, 70 10 -3] ),
Path( "M20,20 C20,60 60,60 60,20 Z" ),
Path( [10 60 1, 10 90 0, 70 90 0, 70 60 -3] )
},
RowStates(dt,
{
{1, 2}, // two different ones so it's not colored
{3}, // only one color so it colors
{7,10, 16} //three of the same color so it colors
}
)
);
New Window( "Shape Seg Example",
gb = Graph Box()
);
gb << append Seg(ss);