We’re asking you to select a content label when starting a new topic in the Discussions area. Read more to find out why.
Choose Language Hide Translation Bar
Highlighted
mlo1
Level III

Reference Line Label generation from column

Hello

I have several events I have to show in a production process

is there any way to get the values (comments) of one column to be displayed as the reference line labels?

Would be nice to see it in the graphbuilder platform while i used Fit Y by X platform for the example shown.

 


LabelColumn.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: Reference Line Label generation from column

Here is a simple example

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

dt << New Column( "Comment",
	Character,
	"Nominal",
	Set Values(
		{"", "", "", "", "", "", "", "", "", "", "Event 1", "", "", "", "", "", "", "", "", "", "", "", "", "",
		"", "Event 2", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}
	)
);

biv = dt << Bivariate( x( :height ), y( :weight ) );

For Each Row(
	If( :comment != "",
		Report( biv )[AxisBox( 2 )] << add ref line( :Weight, "Solid", "Black", :comment )
	)
);
Jim

View solution in original post

2 REPLIES 2
Highlighted
txnelson
Super User

Re: Reference Line Label generation from column

Here is a simple example

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

dt << New Column( "Comment",
	Character,
	"Nominal",
	Set Values(
		{"", "", "", "", "", "", "", "", "", "", "Event 1", "", "", "", "", "", "", "", "", "", "", "", "", "",
		"", "Event 2", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}
	)
);

biv = dt << Bivariate( x( :height ), y( :weight ) );

For Each Row(
	If( :comment != "",
		Report( biv )[AxisBox( 2 )] << add ref line( :Weight, "Solid", "Black", :comment )
	)
);
Jim

View solution in original post

Highlighted
mlo1
Level III

Re: Reference Line Label generation from column

Thank you very much for your support and the jsl solution.