cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

text in the filtre

ResamplingFawn4
Level I

Hi,
How can I add text to the filters to explain them better?

2 REPLIES 2
txnelson
Super User


Re: text in the filtre

Is this what you are looking for?

txnelson_0-1718282204115.png

Names Default To Here( 1 );
dt = 
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );

New Window( "Oneway Analysis",
	V List Box(
		Text Box( "    Please Click on the Age" ),
		Text Box( "    Value to Change the Analysis" ),
		Text Box( " " ),
		Oneway(
			Y( :height ),
			X( :sex ),
			Means( 1 ),
			Mean Diamonds( 1 ),
			Local Data Filter( Add Filter( columns( :age ), Display( :age, N Items( 6 ) ) ) )
		)
	)
);
Jim


Re: text in the filtre

I like Jim's suggestion, but here's another that might work. Change the title of the Local Data Filter. You can click on the title twice to enter edit mode, then type another title.

John_Powell_JMP_0-1718283835342.png

Using JSL, it would be:

Names Default To Here( 1 ); 
Open( "$SAMPLE_DATA/Big Class.jmp" ); 
Oneway( 
  Y( :height ),
  X( :sex ),
  Means( 1 ),
  Mean Diamonds( 1 ),
  Local Data Filter(
    Title( "Choose age(s) to display" ),
    Add Filter( columns( :age ), Display( :age, N Items( 6 ) ) )
  )
);