Hi JMP Community!
I have the following piece of code as part of an add-in I made:
Report7 = Platform(
dt,
gb7 = Graph Builder(
Size( 632, 571 ),
Show Control Panel( 0 ),
Fit to Window( "Maintain Aspect Ratio" ),
Variables( X( :Order No. ),
Y( :S0a value, Position( 1 ) ),
Y( :S1a value, Position( 1 ) ),
Y( :S1b value, Position( 1 ) ),
Y( :S1c value, Position( 1 ) ),
Y( :S2a value, Position( 1 ) ),
Y( :S3a value, Position( 1 ) ),
Y( :S4b value, Position( 1 ) ) ),
Elements(
Line( X, Y( 1 ), Y( 2 ), Y( 3 ), Y( 4 ), Y( 5 ),
Y( 6 ), Y( 7 ), Legend( 11 ) )
),
)
);
The issue is that I don't always have all the columns that I'm asking the add-in to plot on the y-axis (e.g. the data table might only have S0a - S1c rather than S0a - S4b). When this is the case, the resulting plot is just a histogram of the x-axis column (i.e. of "Order No.").
Is there a way of making the code plot whatever columns are available and automatically ignore the ones that aren't? I'm open to other ideas as well.
Thank you in advance!
Ahmed