cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
howard_woo1
Level I

Labeling data on split Y-axis

JMP 15.1.0

Sorry if this has been answered before.

 

I have a graph built on graphbuilder with split y-axis (eg Temperature (y-axis1), Humidity (y-axis2) vs day). I want to add data labels showing the datapoint values for each series with its respective data (ie Temperature datapoints labeled with temperature values and Humidity datapoints labeled with humidity values).

 

What I get is both series labeled with ether temperature values OR humidity values depending on which column I select for labeling. If I select both temperature and humidity columns for labeling, I get labels for both values separated by a comma.

 

How can I get data labels for only the value represented by series (ie temperature data only labeled with temperature value, humidity data labeled by only humidity values)?

Thank you,

Howard

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Labeling data on split Y-axis

One way would most likely be to stack the data with humidity and temperature (Tables menu / Stack) and add label (and marker) to the stacked data.

 

Example from Big Class sample data:

Non-stacked:

jthi_1-1610652984374.png

One way to plot from stacked (depending on how you need to do visualization play around with Label in different places to get different kind of graphs)

jthi_2-1610652995432.png

Using Page with Label

jthi_3-1610653164137.png

 

Also see this topic:

https://community.jmp.com/t5/Discussions/How-to-add-value-label-to-points/m-p/250689/highlight/true#...

and https://www.jmp.com/support/help/en/15.1/#page/jmp/label-rows-and-columns.shtml

 

Edit:

Also maybe Bar chart with Bar Style: Float could work:

jthi_0-1610654204167.png

 

-Jarmo

View solution in original post

3 REPLIES 3
jthi
Super User

Re: Labeling data on split Y-axis

One way would most likely be to stack the data with humidity and temperature (Tables menu / Stack) and add label (and marker) to the stacked data.

 

Example from Big Class sample data:

Non-stacked:

jthi_1-1610652984374.png

One way to plot from stacked (depending on how you need to do visualization play around with Label in different places to get different kind of graphs)

jthi_2-1610652995432.png

Using Page with Label

jthi_3-1610653164137.png

 

Also see this topic:

https://community.jmp.com/t5/Discussions/How-to-add-value-label-to-points/m-p/250689/highlight/true#...

and https://www.jmp.com/support/help/en/15.1/#page/jmp/label-rows-and-columns.shtml

 

Edit:

Also maybe Bar chart with Bar Style: Float could work:

jthi_0-1610654204167.png

 

-Jarmo
howard_woo1
Level I

Re: Labeling data on split Y-axis

Thanks Jithi for the quick reply!

The bar chart method works well, but the lines as markers is a bit distracting.

 

I tried stacking the data and putting the "label" column in the "group y" feature. This also works, but it also synchronizes the two y-axes. This is not good for values that have very different ranges (eg Temperature in 10's and Humidity in 0.1's).

 

Do you know of any work around for the synchronized axis issue?

 

Thanks, again,

Howard

jthi
Super User

Re: Labeling data on split Y-axis

I haven't figured out how to disable the synchonization of two y-axes. You could go with the Label in Page and then make graphs as close to each other has possible (or attempt to script two graph builders close to each other).
-Jarmo