I can only set the specifications of the B,
i cannot continue to set the specification of A
thanks
but if it has many values how can I put many values into table once?
@txnelson wrote:Using a Local Data Filter, will not allow you to have different reference lines for the different selections. The Script below uses the Column Property, Spec Limits, to set the Specification Limits for 2 variables, Data A and Data B. It then uses a Column Switcher to gain the effect you want.Names Default to Here(1); New Table( "Sample", Add Rows( 4 ), New Column( "Data A", Numeric, "Continuous", Format( "Best", 12 ), Set Property( "Spec Limits", {LSL( 11.5 ), USL( 13.5 ), Show Limits( 1 )} ), Set Values( [12, 12, 12, 13] ) ), New Column( "Data B", Numeric, "Continuous", Format( "Best", 12 ), Set Property( "Spec Limits", {LSL( 13.5 ), USL( 16.5 ), Show Limits( 1 )} ), Set Selected, Set Values( [16, 13, 14, .] ) ) ); Graph Builder( Size( 534, 418 ), Show Control Panel( 0 ), Variables( Y( :Data B ) ), Elements( Points( Y, Legend( 2 ) ) ), Column Switcher( :Data B, {:Data A, :Data B} ) );
Using a Local Data Filter, will not allow you to have different reference lines for the different selections. The Script below uses the Column Property, Spec Limits, to set the Specification Limits for 2 variables, Data A and Data B. It then uses a Column Switcher to gain the effect you want.
Names Default to Here(1); New Table( "Sample", Add Rows( 4 ), New Column( "Data A", Numeric, "Continuous", Format( "Best", 12 ), Set Property( "Spec Limits", {LSL( 11.5 ), USL( 13.5 ), Show Limits( 1 )} ), Set Values( [12, 12, 12, 13] ) ), New Column( "Data B", Numeric, "Continuous", Format( "Best", 12 ), Set Property( "Spec Limits", {LSL( 13.5 ), USL( 16.5 ), Show Limits( 1 )} ), Set Selected, Set Values( [16, 13, 14, .] ) ) ); Graph Builder( Size( 534, 418 ), Show Control Panel( 0 ), Variables( Y( :Data B ) ), Elements( Points( Y, Legend( 2 ) ) ), Column Switcher( :Data B, {:Data A, :Data B} ) );