A customer in Korea asked the same question as the title, and found a way through the discussion in the community below.
https://community.jmp.com/t5/Discussions/Repeat-legend-with-every-page/mp/47575?advanced=false&collapse_discussion=true&q=legend&search_type=thread
The solution in the discussion above is to use the 'by' function rather than the page function. This is a suitable solution when dividing a type of graph in which only one variable is assigned to the Y-axis by another variable.However, what my client wants is to include two graphs on one page by specifying two variables on the Y-axis, and then divide them by another variable.
I would like to know how I can display the legend on all other pages or graphs at once in a graph with the Y-axis split in two.
Hi Chul-Hee,
The first graph builder script below is from a paged graph. Running the 2nd graph builder script below has BY groups and separate Y axes. I do not know a way to make this 2nd graph purely by point-and-click, because the launch dialog that has the "By" role, also consolidates the y-axes.
The script change is an easy one, though. Make the paged graph by point-and-click, then save the script to the clipboard and make this small change: delete the Page (:Airline) argument from the Variables section, and add By (:Airline) at the bottom of the Graph Builder script.
Graph Builder(
Variables( X( :Month ), Y( :Arrival Delay ), Y( :Distance ), Page( :Airline ) ),
Elements( Position( 1, 1 ), Bar( X, Y, Legend( 13 ) ) ),
Elements( Position( 1, 2 ), Box Plot( X, Y, Legend( 16 ) ) )
;
Graph Builder(
Variables( X( :Month ), Y( :Arrival Delay ), Y( :Distance ) ),
Elements( Position( 1, 1 ), Bar( X, Y, Legend( 13 ) ) ),
Elements( Position( 1, 2 ), Box Plot( X, Y, Legend( 16 ) ) ),
By (:Airline)
)
Hello, Brady!
I didn't know it would be this easy.
The script does exactly what I wanted.
thank you!