Running another JSL over Hover Labels on a graph failedRuns another JSL(test.jsl) on the graph by Hover Labels,
frame = (p1 << report)[FrameBox( 1 )];
frame << Set Graphlet( Picture( loader = Include( "D:\0\test.jsl" ) ), Title( "Pie Preset" ), Reapply( 1 ) );
but does not finish.The record in the log is
<<ORIENTATION><<PASTE><<GET annotation=""><<ADD polygon="" annotation=""><<ADD pin="" annotation=""><<SAVE presentation=""><<SET window="" id=""><<SIZE window=""><<GET window="" position=""><<PRINT window=""><<CLOSE window=""><<SET window="" icon=""><<SET min="" size=""><<UI only.=""></UI></SET></SET></CLOSE></PRINT></GET></SIZE></SET></SAVE></ADD></ADD></GET></PASTE></ORIENTATION>Object 'LegendBox' does not recognize the message 'Position'; perhaps you mean one of these: <
However, if run test.jsl directly, it will get the correct result.
Do not know the specific reason?
Thanks!
Basic Data Analysis and ModelingWindows回复: Running another JSL over Hover Labels on a graph failed
Re: Running another JSL over Hover Labels on a graph failedVery difficult to say without knowing what test.jsl has or how rest of your script is written. This does for example open the caption correctly (and does show how aggressive hover label is to trigger)
Names Default To Here(1);
::myglobal = 1;
dt = Open("$SAMPLE_DATA/Big Class Families.jmp");
gb = dt << Graph Builder(
Show Control Panel(0),
Variables(X(:age), Y(:weight)),
Elements(Bar(X, Y, Legend(7)))
);
myscript = JSL Quote(
Names Default To Here(1);
Caption(Char(::myglobal++));
);
Save Text File("$TEMP/testscript.jsl", myscript);
frame = (gb << report)[FrameBox(1)];
frame << Set Graphlet(
Picture(
Include("$TEMP/testscript.jsl");
),
Reapply(1)
);