The first case works fine but the second case where the axes names are supplied from outside does not work, where am I going wrong?
Graph Builder(
Size( 528, 457 ),
Show Control Panel( 0 ),
Variables( X( :Column (3) ), Y( :Column (4) ) ),
Elements( Points( X, Y, Legend( 3 ) )),
SendToReport(
Dispatch(
{},
"Median 1",
ScaleBox,
{Add Ref Line( _LSL1_, "Solid", "Black", "xLSL", 1 ),
Add Ref Line( _USL2_, "Solid", "Black", "xUSL", 1 )}
),
Dispatch(
{},
"Median 2",
ScaleBox,
{Add Ref Line( _LSL2_, "Solid", "Black", "yLSL", 1 ),
Add Ref Line( _USL2_, "Solid", "Black", "yUSL", 1 )}
)
)
);
second case
xColName = Column Name( 3 ); show (xColName);
yColName = Column Name( 4 ); show (yColName);
Graph Builder(
Size( 528, 457 ),
Show Control Panel( 0 ),
Variables( X( :Column (3) ), Y( :Column (4) ) ),
Elements( Points( X, Y, Legend( 3 ) )),
SendToReport(
Dispatch(
{},
xColName, //"xColName"
ScaleBox,
{Add Ref Line( _LSL1_, "Solid", "Black", "xLSL", 1 ),
Add Ref Line( _USL2_, "Solid", "Black", "xUSL", 1 )}
),
Dispatch(
{},
yColName, //"yColName"
ScaleBox,
{Add Ref Line( _LSL2_, "Solid", "Black", "yLSL", 1 ),
Add Ref Line( _USL2_, "Solid", "Black", "yUSL", 1 )}
)
)
);
When it's too good to be true, it's neither