cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
Choose Language Hide Translation Bar
miguello
Level VI

Multiline label for reference line?

Is there any way to have a two-line label for a reference line? My lable has to be long and it eats up a lot of valuable screen space. Would be ideal if I could break it into two lines. Any way to achieve that? 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Multiline label for reference line?

I don't believe there is a direct way to do it.  I was hoping that by embedding \!n, the standard new line sequence that it would break the line, but it does not recognize it

twolines.PNG

You could draw the reference line without any label, and then use the << Add Graphics Script  to add the info

twolines2.PNG

names default to here(1);
dt = open("$SAMPLE_DATA/big class.jmp");

ow = Oneway(
	Y( :height ),
	X( :sex ),
	SendToReport(
		Dispatch( {}, "1", ScaleBox, {Add Ref Line( 65, "Solid", "Black", "", 1 )} )
	)
);

report(ow)[framebox(1)] << add graphics script(
	Text( Center Justified, {2, 65}, "Two" );
				Text( Center Justified, {2, 64}, "Lines" );
);

 

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Multiline label for reference line?

I don't believe there is a direct way to do it.  I was hoping that by embedding \!n, the standard new line sequence that it would break the line, but it does not recognize it

twolines.PNG

You could draw the reference line without any label, and then use the << Add Graphics Script  to add the info

twolines2.PNG

names default to here(1);
dt = open("$SAMPLE_DATA/big class.jmp");

ow = Oneway(
	Y( :height ),
	X( :sex ),
	SendToReport(
		Dispatch( {}, "1", ScaleBox, {Add Ref Line( 65, "Solid", "Black", "", 1 )} )
	)
);

report(ow)[framebox(1)] << add graphics script(
	Text( Center Justified, {2, 65}, "Two" );
				Text( Center Justified, {2, 64}, "Lines" );
);

 

Jim
miguello
Level VI

Re: Multiline label for reference line?

Yeah, looks like this is the easiest workaround. Thanks!