한국의 한 고객이 제목과 같은 질문을 했었고, 아래 커뮤니티의 토론을 통해 그 방법을 찾았다.
https://community.jmp.com/t5/Discussions/Repeat-legend-with-every-page/m-p/47575?advanced=false&collapse_discussion=true&q=legend&search_type=thread
위 토론에서의 해결방안은 페이지 기능이 아닌 '의해(By)' 기능을 이용하는 것이다. 이는 Y축에 하나의 변수만을 할당한 한 종류의 그래프를 또 다른 변수에 의해 나누어 볼 때는 적합한 해결방안이다. 그러나 나의 고객이 원하는 것은 Y축에 두 개의 변수를 지정하여 하나의 페이지에 두 개의 그래프를 포함하고, 다시 이를 또 다른 변수에 의해 나누어 보려는 것이다.
Y축을 둘로 나눈 그래프에서 범례를 다른 모든 페이지 또는 그래프에 한꺼번에 표시할 수 있는 방법을 알고 싶음.
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) )
안녕하세요, Brady!
이렇게 쉬운 줄 몰랐습니다.
그 스크립트가 내가 원했던 결과를 잘 만들어냅니다.
고마워요!