I am creating an application which allows the user to select a few options before running a script which involves a few SQL queries and then making some graphs... nothing too crazy.
A radio button control is used to set the value of a variable named "type".. I want one of the "fit where" options for a bivariate graph to be the contents of this variable...
Bivariate(
Y( :Current),
X( :Voltage),
Show Points( 0 ),
Fit Where(
:type == "cell",
Fit Each Value( {Report( 0 ), Line Color( {0, 0, 255} ), Report( 0 )} )
),
Fit Where(
:type == type, //this is troublesome line... the graph is generated but not quite right.
Fit Each Value( {Report( 0 ), Line Color( {213, 72, 87} ), Report( 0 )} )
),
By( :CellID)
);
The graph generates correctly, but the annoying thing is the resulting graph says "fit each value type == type". How can I get it to display the contents of the variable which was used instead of it's name?? I've tried a few options already including "eval(type)".
