cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
vince_faller
Super User (Alumni)

N points Label in Graph Builder with a Local Data Filter

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( "" ) ) )
		)
	)
);

 

Vince Faller - Predictum
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: N points Label in Graph Builder with a Local Data Filter

Could using Hover labels work?

jthi_1-1628703487119.png

 

jthi_0-1628703431825.png

Add rich text to hover labels 

-Jarmo

View solution in original post

3 REPLIES 3
jthi
Super User

Re: N points Label in Graph Builder with a Local Data Filter

Could using Hover labels work?

jthi_1-1628703487119.png

 

jthi_0-1628703431825.png

Add rich text to hover labels 

-Jarmo
vince_faller
Super User (Alumni)

Re: N points Label in Graph Builder with a Local Data Filter

Yeah that works fine.  Is there documentation for all of the local variables?

Vince Faller - Predictum
jthi
Super User

Re: N points Label in Graph Builder with a Local Data Filter

I think this has at least quite many of them Work with the hover label execution context 

-Jarmo