I'm wondering if it's an easy task to add an N points label to the following graph? So that it shows the number of people in that age/sex group based off of what's selected in the local data filter. So mousing over the mail line with the current selection at age 12 (robert and tim) should show N = 2.
I explicitly do NOT want to add the points elements and N off of that since I have to mouse to a different place to see it.
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( "" ) ) )
)
)
);