Column Switcher not appearing in Graph Builder scriptI’ve written a Graph Builder script with two Column Switchers (for X and Y axes).
The code runs without errors, but the Column Switcher controls do not appear in the graph UI.
When I simplify to a standalone Graph Builder (outside New Window or New Script), the switchers appear normally.
Is there a known limitation or syntax nuance that causes Column Switcher not to render when used inside saved table scripts or New Window blocks?
Example (anonymized but structurally identical):
// Visualization Script: KPI Trends by X-axis
Current Data Table() << New Script(
"Graphs: KPI v X-axis",
New Window("KPI Trends",
Graph Builder(
Size( 457, 346 ),
Fit to Window( "Off" ),
Variables(
X( :"X-axis Variable"n ),
Y( :"Primary Metric (%)"n ),
Overlay( :Batch_ID ),
Color( :Group_ID )
),
Elements(
Line( X, Y, Legend( 21 ) ),
Points( X, Y, Legend( 22 ) )
),
// Switch between time-based axes
Column Switcher(
:"X-axis Variable"n,
{:"X-axis Variable"n, :"Alternate X Variable"n}
),
// Switch between various KPIs on Y-axis
Column Switcher(
:"Primary Metric (%)"n,
{
:"Primary Metric (%)"n,
:"Metric_1 (unit)"n,
:"Metric_2 (unit)"n,
:"Metric_3 (unit)"n,
:"Metric_4 (unit)"n,
:"Metric_5 (unit)"n,
:"Metric_6 (unit)"n,
:"Metric_7 (unit)"n
}
//Retain Axis Settings( 0 ) // (Commented)
),
SendToReport(
Dispatch(
{},
"Primary Metric (%)",
ScaleBox,
{Min( 0 )}
)
)
)
)
);
Notes:
Automation and ScriptingData Exploration and VisualizationRe: Column Switcher not appearing in Graph Builder scriptQuickly looking at your script I'm not sure what could be wrong. Is anything being printed to the log? Do you have multiple tables open? Is graph being created from the correct table when you run the table script?
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");
dt << New Script("Graph",
New Window("",
Graph Builder(
Size(528, 448),
Show Control Panel(0),
Fit to Window("Off"),
Variables(X(:SITE), Y(:NPN1)),
Elements(Points(X, Y, Legend(3))),
Column Switcher(:NPN1, {:NPN1, :PNP1, :PNP2, :NPN2, :PNP3, :IVP1, :PNP4}),
Column Switcher(:SITE, {:lot_id, :wafer, :Wafer ID in lot ID, :SITE}),
SendToReport(
Dispatch(
{},
"NPN1",
ScaleBox,
{Min( 0 )}
)
)
)
)
);
Re: Column Switcher not appearing in Graph Builder scriptThis code is exactly as per the reference script. In that this works fine.
I thought this could be a version specific bug.
Re: Column Switcher not appearing in Graph Builder scriptMy example script works fine on the versions I can test with: JMP18.2.0, JMP18.2.1, and JMP19.0.1
Re: Column Switcher not appearing in Graph Builder scriptFor what it's worth, I created a dummy table with your column names and ran your exact script. Both column switchers showed up as expected. JMP 18.0.1