cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Have your say in shaping JMP's future by participating in the new JMP Wish List Prioritization Survey
Choose Language Hide Translation Bar
Sebastienlg
Level II

Error message from Elements( Points( X, Y, Legend( 2 ) ) ),

Hi all,

I am trying to make a graph, However, I get an error message, but I don't have any idea where it comes from.

Here is my program:

graph = RAW_DATA_TABLE << Graph Builder(
					Size( 450, 400 ),
					Show Legend( 0 ),
					Show Control Panel( 0 ),
					Variables( X( :Numéro de lot ), Y( Eval( defaut ) ),
					Elements( Points( X, Y, Legend( 2 ) ) ),
					SendToReport(
						Dispatch(
							{},
							Eval( defaut ),
							ScaleBox,
							{Add Ref Line( Seuil1, "Solid", "blue", "Seuil d'action =" || Char( Seuil1 ), 2 ), Add Ref Line(
								Seuil2, "Solid", "Green", "Seuil d'alerte =" || Char( Seuil2 ), 2
							)}
						), 
					)
				))

The error is from the : Elements( Points( X, Y, Legend( 2 ) ) ),

Here is the message I got:

The specified column could not be found in the data table. when accessing or evaluating "Elements", Elements( Points( X, Y, Legend( 2 ) ) ) /*###*/

Any suggestion of the problem?

Thanks a lot,

Sébastien

3 REPLIES 3
Thierry_S
Super User

Re: Error message from Elements( Points( X, Y, Legend( 2 ) ) ),

Hi,

 

At first glance, the variable "default" is not defined, at least in the segment of code you shared. It is possible that the expression "Eval (default)" does not return a reference to a column.

 

If you precede the Graph Builder script with a simple

Show (Eval (defaut));

What does the log return?

 

Let us know.

 

Best,

 

TS

 

 

Thierry R. Sornasse
Sebastienlg
Level II

Re: Error message from Elements( Points( X, Y, Legend( 2 ) ) ),

Hi Thierry,

Thank you for your reply.

I have not added all my script, however, the defaut variable is well define:

Sebastienlg_0-1689753259998.png

I tried directly with the variable itself and it does not work as well. 

Any other suggestion?

Thank you,

Sebastien

mmarchandTSI
Level V

Re: Error message from Elements( Points( X, Y, Legend( 2 ) ) ),

As long as "Ma variable d'étude " is the name of a column in RAW_DATA_TABLE, this should work.  I believe that's what @Thierry_S was getting at.  Double check to make sure that "Ma variable d'étude " is the name of a column in the data table.