Hi
i created a script that generates a variability chart that shows in the Y axis: NewValue and in the X axis: ENTITY.
the variability chart is filtered by ATTRIBUTE_NAME so i get plenty of graphs, each for every attribute name.
i want the script to add the relevant SPEC limits from an additional data table (called: "Gases SPEC limits") to new columns and generate Variability Chart for each attribute name with its specific SPEC values.
could not undertand how to do it, please help!
attached here is my failed script so far to generate USL manually for 3 different attributes:
dt = current data table();
dt << New Column ( "USL",
Numeric,
Continuous,
Formula ( If( :ATTRIBUTE_NAME == "Gas07TactrasFlowCheckF2",65,
If( :ATTRIBUTE_NAME == "Gas08TactrasFlowCheckF2", 70,
If( :ATTRIBUTE_NAME == "Gas04TactrasFlowCheckF2", 15, 10)
) ) )
);
varch = dt << Variability Chart(
Y( :NewValue ),
X( :ENTITY ),
By(:ATTRIBUTE_NAME),
Show Range Bars( 0 ),
Show Cell Means( 0 ),
Connect Cell Means( 0 ),
Show Separators( 0 ),
Std Dev Chart( 0 ),
Points Jittered( 1 ),
AIAG Labels( 0 ),
ATTRIBUTE_NAME
SendToReport(
Dispatch(
{},
"1",
ScaleBox,
{Add Ref Line( __Upper__, "Solid", "Black", "gfgfd", 1 )}
),
Dispatch(
{},
"Oneway Plot",
FrameBox,
)
)
);
For(i=1,i<=N Rows(dt),i++,
report(varch)[axisbox (1)]<<Add Ref Line( dt:LSL[i], "Solid", "Dark Green","Target", 1 );
report(varch)[axisbox (1)]<<Add Ref Line( dt:USL[i], "Solid", "Dark Green","", 1 );
);