Choose Language Hide Translation Bar
Highlighted
miguello
Level V

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
Highlighted
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
Highlighted
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

Highlighted
miguello
Level V

Re: Multiline label for reference line?

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