Hi,
I want to set LegendBox position by a list as following jsl, but it is not work. how do I pass the "mylist " into position?
the list "mylist" will be a dynamic result from other funciton , so I need to pass the variable while setup graph builder or update the graph builder after announcement.
I need the graph legendbox like the picture.
Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = Graph Builder(
Show Control Panel( 0 ),
Variables(
X( :height ),
Y( :weight ),
Overlay( :sex )
),
Elements(
Points( X, Y, Legend( 0 ) ),
Smoother( X, Y, Legend( 1 ) )
)
);
mylist={-1, -1, 1, 0};
Report( gb )[LegendBox( 1 )] << Position(mylist ); 