turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- How to add Label by Percent of Total Values in a G...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Apr 9, 2013 11:49 AM
(730 views)

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Solution

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** **)**

**)**;

1 REPLY

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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** **)**

**)**;