How do I change Legend Settings, e.g., Item Wrap, in bulk when I have tons of plots in a report? Can't find a way similar to Ctrl + Copy/Paste Customization
Go to Solution
The usual way of pressing cmd/ctrl key to send a message to all graphs does not seem to work for the legend settings. It is, however, quite straightforward with JSL and xpath.
Names Default To Here(1);
//Example report with multiple graphs
dt = Open("$SAMPLE_DATA/Big Class.jmp");
gb = Expr(
dt << Graph Builder(Variables(X(:weight), Y(:height), Overlay(:age)), <<Done)
New Window("test", gb, gb, gb);
//Set wrap for all legends
(Current Report() << xpath("//LegendBox")) << Set Wrap(2);
View solution in original post
There are no labels assigned to this post.