cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • DownloadSemiconductor Toolkit: Tools to create wafer maps, add wafer geometry to graphics, explore die defects & compare wafers.
  • Discovery Summit 2026: Early User Edition - September 23-24.Register. It's free.
  • Use JMP Clinical with CDISC-compliant data. Review studies, ID safety and efficacy signals & communicate findings with interactive graphics. Register to see how. Aug. 27, 2 pm US ET.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
jcw
jcw
Level I

How to add Label by Percent of Total Values in a Graph Builder Horizontal Bar Chart

Hi Community.

I created a side-by-side horizontal bar graph in Graph Builder with an overlay of two groups. I can't find an option in Graph Builder to label the bars with % of Total Values. Does the option to label exist somewhere in Graph Builder? If no, does somebody have a script that could accomplish this for each bar?

Thanks again, J.

1 ACCEPTED SOLUTION

Accepted Solutions
pmroz
Super User

Re: How to add Label by Percent of Total Values in a Graph Builder Horizontal Bar Chart

Bar chart labels aren't in Graph Builder until JMP 11.  If you really need them, you can use the Graph > Chart platform.  Here's an example in JSL:

dt = open("$sample_data/Big Class.jmp");

dt << Chart(

      X( :sex ),

      Y( Mean( :height ) ),

      Horizontal( 1 ),

      Label by Percent of Total Values,

      Show Labels,

      Bar Chart( 1 ),

      Y[1] << Label Format( "Percent", 6, 1 )

);

View solution in original post

1 REPLY 1
pmroz
Super User

Re: How to add Label by Percent of Total Values in a Graph Builder Horizontal Bar Chart

Bar chart labels aren't in Graph Builder until JMP 11.  If you really need them, you can use the Graph > Chart platform.  Here's an example in JSL:

dt = open("$sample_data/Big Class.jmp");

dt << Chart(

      X( :sex ),

      Y( Mean( :height ) ),

      Horizontal( 1 ),

      Label by Percent of Total Values,

      Show Labels,

      Bar Chart( 1 ),

      Y[1] << Label Format( "Percent", 6, 1 )

);

Recommended Articles