我想知道向下圖添加 N 點標籤是否是一項簡單的任務? 這樣它就會根據本地資料過濾器中所選的內容顯示該年齡/性別組中的人數。因此,將滑鼠懸停在 12 歲(羅伯特和蒂姆)當前選擇的郵件行上應該顯示 N = 2。
我明確不想添加點元素和 N 個元素,因為我必須將滑鼠移到不同的位置才能看到它。
Names default to here(1);
dt = open("$SAMPLE_DATA\Big Class.jmp");
dt:name << Label(1);
// this shows up as a bunch of the same value instead of just the number
dt << New Column("N_sex_age", Formula(ColSum(1, :sex, :age)));
dt:"N_sex_age"n << Label(1);
dt << Graph Builder(
Size( 534, 450 ),
Show Control Panel( 0 ),
Variables( X( :age ), Y( :weight ), Overlay( :sex ) ),
Elements( Line( X, Y, Legend( 15 ) ) ),
Local Data Filter(
Add Filter(
columns( :name ),
Where(
:name == {"LILLIE", "MARION", "MARTHA", "MICHAEL", "PHILLIP",
"ROBERT", "TIM"}
),
Display( :name, N Items( 15 ), Find( Set Text( "" ) ) )
)
)
);