cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
rbiss
Level I

Graph Builder Legend Challenges

I am in graph builder and there are 2 lines, a target and the actual.  The legend indicates what each line is, but there is another layer in the data.  The triangles are one product and the circles are another product.  If I use "product" as overlay, it adds 2 additional lines but nothing about the circle and the triangle which are row states for the product.  Is there a way to add a legend that indicates what the circle and triangles are?   Note: data has been redacted for privacy reasons.

rbiss_0-1744744125860.png

 

4 REPLIES 4
hogi
Level XII

Re: Graph Builder Legend Challenges

You could use the color dropzone to specify the symbols for the additional layer in the data:

hogi_0-1744746371435.png


dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Column( "Row",
	Formula( Row() )
);
Graph Builder(
	Size( 501, 291 ),
	Show Control Panel( 0 ),
	Variables( X( :Row ), Y( :height ), Y( :weight, Position( 1 ) ), Color( :sex ) ),
	Elements(
		Line(
			X,
			Y( 1 ),
			Y( 2 ),
			Color( 0 ),
			Legend( 17 ),
			Summary Statistic( "Mean" )
		),
		Points( X, Y( 2 ) ),
		Points( X, Y( 1 ) )
	)
);

 

EsmeHollis
Level I

Re: Graph Builder Legend Challenges

It helped me, Thank you so much.

jthi
Super User

Re: Graph Builder Legend Challenges

You might be able to turn on legend for the markers from legend settings (double click on the legend or use red triangle menu to access the settings)

-Jarmo
hogi
Level XII

Re: Graph Builder Legend Challenges

Note that even if legend is enabled, Graph Builder won't display legend entries for marker settings controlled by row states. Therefore, I don't recommend tho use row states to control the markers. It is much more convenient to store the information in a column and use the column as described in my previous post.

 

I have to admit:
the user has to set the markers manually.

 

much better via Column Property:

This wish new Column Property: Value Markers needs more votes to get the attention of the developers : )

Recommended Articles