Hi, Is there a way to refresh a graph builder axis using jsl? The last line in my code (...<max()<<min();// ) is resulting in multiple values on an axis, see vertical axis in attached picture.
I use the setwidth(0) on distribution for cases where I end up needing to reset the axis width based on number of digits. setwidth(0) sets it automatically. i'm not sure how much it helps on graph builder.
I'm hoping there's an automatic way to adjust it, otherwise I can play with minor ticks and inc().
My code does something like this but I haven't been able to distill my code/tables down to a shareable and reproducible version.
Clear Log();
Names Default To Here( 1 );
dtData = open( "$SAMPLE_DATA\Body Measurements.jmp");
myList = {};
for(i=1,i<=nrows(dtData),i++, myList[i] = mod(i-1,5)+1);
dtData << newcolumn("xaxis", Numeric, "Nominal", values(myList));
for(i=1,i<=nrows(dtData),i++, myList[i] = floor((i-1)/5)+1);
dtData << newcolumn("overlay", Numeric, "Nominal", values(myList));
gbObj= Graph Builder(
size(350,350),
show control panel (0),
Variables( X( :xaxis ), Y( :Mass ), Overlay( :overlay ), color(:overlay) ),
Elements(
Line( X, Y, Legend( 4 ), Row order( 0 ) )
)
);
gbOlbXpObj = gbObj << xpath( "//OutlineBox[ text() = 'Graph Builder']//AxisBox");
gbOlbXpObj[2] << max(101.6589)<< min(55) << setwidth(0);// << inc(myInc);

Thanks,
Mike