How do I wrap in multiple lines the label of a Group X variable in Graph Builder?Hi,
I'm doing a very simple graph in graph builder. I have very long name for the sample (used as group X variable).
How can I wrap in multiple lines the labels? I would like to avoid to have half graph which are labels!!
Thanks
GraphicsRe: How do I wrap in multiple lines the label of a Group X variable in Graph Builder?It seems to be already in JMP15, but I'm using JMP16 so it might behave a little differently when compared to JMP15
A little extra: here is the very very scary looking regex I used with JMP14 that I cannot remember anymore how it worked, but I think the idea was to wrap at 15th character if there are no whitespaces which could be used:
Names Default To Here(1);
regex_wrapping = "(?:((?>.{1,15}(?:(?<=[^\S\r\n])[^\S\r\n]?|(?=\r?\n)|$|[^\S\r\n]))|.{1,15})(?:\r?\n)?|(?:\r?\n|$))";
long_str_without_spaces = "very_long_string_with_many_words_and_requires_wrapping";
long_str_with_spaces = "very long string with many words and requires wrapping";
Show(Regex(long_str_without_spaces, regex_wrapping, "\1\!N", GLOBALREPLACE));
Show(Regex(long_str_with_spaces, regex_wrapping, "\1\!N", GLOBALREPLACE));
Re: How do I wrap in multiple lines the label of a Group X variable in Graph Builder?Thanks a lot! It was exactly my point!
Which version are you using now? I have JMP14 and there is not that option in Axis Label Row, but I will move soon at 15.
Re: How do I wrap in multiple lines the label of a Group X variable in Graph Builder?If you want to wrap them on axis, sometimes you might manage with axis settings Wrap Lines, but I think it wont wrap one long string without any whitespace

You might also end up with some missing labels when using this:

When I had this problem in some earlier version of JMP (I think it was 14), I did create new label column with some very complicated regex to handle the splitting at correct place
Re: How do I wrap in multiple lines the label of a Group X variable in Graph Builder?FWIW, when dropping a variable into the 'Group X' zone, I found that (JMP 16.2 on a Mac) Graph Builder did a reasonable job in breaking up the labels. And, if that's not to your taste, you can just drag to make changes to the widths:


Re: How do I wrap in multiple lines the label of a Group X variable in Graph Builder?Thanks a lot for your answer!
Actually I would not change the labels, but only display them in two lines in the graph as in the example below (I did it in power point because I cannot do it in JMP).
Re: How do I wrap in multiple lines the label of a Group X variable in Graph Builder?Welcome to the Community!
There are many ways to perform this:
- One is to make a Calculation (Transform) on that column in the Graph Builder (in your case you may need character function word to get a part of your column content, my formula was subtr(name, 1,1), that gives the first character, Based on data table "Big Class.jmp" from the Help-Sample Data menu
- another would be to generate a new Column by "Recode" (right click on Column name ...)
see also documentation that you can find under Help, or press ? and click on a part of the platform


