Hi - I am running JMP 14, and am trying to produce a very specific chart within the Graph Builder. I attach a JSL script that creates a data table, which in turn contains two scripts which illustrate the problem I have.
If I run script "A, B & C Only", I get a chart within the Graph Builder in which the scores for the three products A, B & C are displayed vertically within each of four groups (called "Scale 1", "Scale 2", "Scale 3" and "Scale 4" respectively). This is exactly the format I want.
If however I now attempt to add a fourth column ("Product D") to the Y axis, the format of the chart automatically changes to the style shown by running the script "A, B, C & D". (Please note - this change does not occur if I run the same script in JMP 13, so I'm guessing the most recent incarnation of the Graph Builder has an additional feature which is anticipating the sort of chart I want to see, and is changing the layout accordingly.)
I want to prevent the Graph Builder from changing the style in this way when more than three products are displayed on the Y axis. Is there a way to do this, please?
Many thanks
New Table( "Demo for JMP User Forum",
Add Rows( 4 ),
New Script(
"A, B & C Only",
Graph Builder(
Size( 536, 454 ),
Show Control Panel( 1 ),
Variables(
Y( :Product A ),
Y( :Product B, Position( 1 ) ),
Y( :Product C, Position( 1 ) ),
Group X( :Name of Scale )
),
Elements( Points( Y( 1 ), Y( 2 ), Y( 3 ), Legend( 15 ) ) ),
SendToReport(
Dispatch(
{},
"Product A",
ScaleBox,
{Label Row( Show Major Grid( 1 ) )}
)
)
)
),
New Script(
"A, B, C & D",
Graph Builder(
Size( 536, 490 ),
Show Control Panel( 1 ),
Variables(
Y( :Product A ),
Y( :Product B, Position( 1 ) ),
Y( :Product C, Position( 1 ) ),
Y( :Product D, Position( 1 ) ),
Group X( :Name of Scale )
),
Elements( Points( Y( 1 ), Y( 2 ), Y( 3 ), Y( 4 ), Legend( 10 ) ) ),
SendToReport(
Dispatch(
{},
"Product A",
ScaleBox,
{Label Row( Show Major Grid( 1 ) )}
)
)
)
),
New Column( "Name of Scale",
Character( 7 ),
"Nominal",
Set Values( {"Scale 1", "Scale 2", "Scale 3", "Scale 4"} )
),
New Column( "Product A",
Numeric,
"Continuous",
Format( "Fixed Dec", 15, 3 ),
Set Values(
[0.367032967032967, -0.94980694980695, 0.909157509157509,
-0.207142857142857]
)
),
New Column( "Product B",
Numeric,
"Continuous",
Format( "Fixed Dec", 15, 3 ),
Set Values(
[-0.0507936507936508, -0.437630662020906, 0.380952380952381,
-0.56017316017316]
)
),
New Column( "Product C",
Numeric,
"Continuous",
Format( "Fixed Dec", 15, 3 ),
Set Values(
[0.627574750830565, -0.923443223443224, 0.666023166023166,
0.390225563909774]
)
),
New Column( "Product D",
Numeric,
"Continuous",
Format( "Fixed Dec", 15, 3 ),
Set Values(
[-0.198412698412698, 0.0804511278195489, 0.167765567765568,
-0.208163265306122]
)
)
)