cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar

Offsetting Value labels in a bar graph

Hello All,

I have a question regarding value label offsets which I have not been able to figure out. I have a script which generates a lot of bar graphs with 2 Y variables and then another Y variable below. All of the Y variables should have label values. However, I am putting a hard axis max on the Y axis of the top two variables so that in some cases the bar tops would be cut off. Thus the label value would not be visible.

I want to have the labels be somewhere close to the Y=0 line or slightly offset from it. Something like the image attached 

AdditiveRange10_0-1731437654120.png
I am using JMP 16 but will be getting 18 soon so solutions for both are welcome.

2 REPLIES 2
jthi
Super User

Re: Offsetting Value labels in a bar graph

One thing you could do is to add second Y-axis on the right side (add to same Y-axis first and then right click -> move to right) and then make maximum Y value very large on that. Disable labels for left side and leave them enabled for right side.

jthi_0-1731438343821.png

Then hide the axis from right side

jthi_1-1731438420313.png

jthi_3-1731438441636.png

 

 

-Jarmo
hogi
Level XII

Re: Offsetting Value labels in a bar graph

Besides the nice trick via the secondary Y axis, here is an excellent blog post how to fine tune the position via JSL:

Graph Builder Bar Graph Label Offset  (@Byron_JMP )

 

and here is a post in the wish list with the idea to provide the functionality directly via the GUI:

Graph builder bar chart data label control