Hey,
I build a chart with dinamic legend that the user can choose by radio box.
The name of the legend that the user choose is saved as 'L1' variable.
I want to add a function that when a user clicks on one value from the legend the spline of this value become more bold.
I add a state handler to the file and tried to use this script:
rsh1 = test1 << Make Row State Handler( dt, rsupdate1 );
rsupdate1 =function({},
SplineSelectlist=dt:L1[dt<<get selected rows];
SplineSelect=SplineSelectlist[1];
// MYSPLINE=EVAL(SplineSelect);
box8<<Fit Where(
:eval(L1) == eval(SplineSelect),
Fit Spline(
0.1,
Standardized,
{Line Width( 5 )}
));
);
The 'fit where' state doesnt recognize the variable.
I also tried with 'parse' or without 'eval' or to define the variable before-
mycolumn= eval(L1);
but none of them work.
I will be glad to hear if there's a solution to this.
Thank you.