How can I detect changes in the order of the X-axis? I am using the following JSL to mark the background color, but users can change the order of the X-axis as shown in the image below. If I cannot detect that the user has made this change to the graph, the previously marked background color area will not follow the new order and will not be updated.
For example, if I originally marked age 13 and the user changes the order to 'Ascending, Weight', I need to know that the user has triggered the order change so that the red marking can be correctly updated to the position of age 13, instead of staying fixed.
What methods can I use to detect when the user changes the X-axis order, or how can I make the background color marking automatically change with the order?
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
GraphX =dt<< Graph Builder(
Size( 534, 450 ),
Show Control Panel( 0 ),
Variables( X( :age ), Y( :weight ), Overlay( :sex ) ),
Elements( Box Plot( X, Y, Legend( 4 ) ) )
);
rep1 = GraphX << report;
frameboxDCRFH = rep1 << XPath( "//FrameBox" );
frameboxDCRFH << Add Graphics Script(
Transparency( 0.1 );
Fill Color( "Red" );
Rect( 0.5, Y Origin() + Y Range(), 1.5, Y Origin(), 1 )
;
);
