cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

How to edit a unique x-axis in graph builder when grouping?

Hello,

 

How can I edit a unique x-axis in the graph bulider when grouping data. As you can see in the example, each group has the same x-axis even though there is no data in the group (highlighted in yellow). How can I edit a unique x-axis for each group so that no empty "spots" appear in the chart?

 

MachineFrog323_0-1695051616772.png

 

Thanks for your help

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How to edit a unique x-axis in graph builder when grouping?

What you will need to do is to Split your data into multiple columns based upon your grouping.  Then you can drag the separate columns onto the X axis, and you will be able to independently modify the 3 axes.  Here is an example using the Big Class sample data table, Splitting the height data into separate columns based upon Sex.

txnelson_0-1695055229108.png

 

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: How to edit a unique x-axis in graph builder when grouping?

What you will need to do is to Split your data into multiple columns based upon your grouping.  Then you can drag the separate columns onto the X axis, and you will be able to independently modify the 3 axes.  Here is an example using the Big Class sample data table, Splitting the height data into separate columns based upon Sex.

txnelson_0-1695055229108.png

 

Jim
hogi
Level XI

Re: How to edit a unique x-axis in graph builder when grouping?

If you want to use one column as Group X and another column on the X Axis, it is NOT possible to remove the white spots:
X group -> adjust axis 

 

But there is this post in the wish list: X group: restrict the values on the axis to the respective group 

I hope enough users support it such that it gets fixed in a future version of Jmp.

 

Workaround:

Instead of using a column as Group X, drag it just below the X axis to add a second level of hierarchy:

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
	Variables(
		X( :sex ),
		X( :name, Position( 1 ) ),
		Y( :weight ),
		Overlay( :sex )
	),
	Elements(
		Points( X( 1 ), X( 2 ), Y, Legend( 1 ) )
	)
)

hogi_0-1695064230400.png

 

 

If the value on the x axis are continuous, Jmp won't allow you to add a nominal column as a second level. Then you have to split the values like @txnelson  already suggested in his reply
(a step-by-step guide (c) @txnelson can be found here: https://community.jmp.com/t5/Discussions/X-group-gt-adjust-axis/m-p/542288/highlight/true#M76187)