I have several points defined in an JSL script and running that would generate a table and also overlay plots for each point.
Say I have point1, point2, point3
I want to define that
RATIO1 = point1*100/(point1+point2+point3)
RATIO2 = point2*100/(point1+point2+point3)
RATIO3 = point3*100/(point1+point2+point3)
Then plot overlay of RATIO1, RATIO2, RATIO3 versus timestamp.
I tried to use Assign(RATIO1, point1*100/(point1+point2+point3)) but did not work. I also tried the operators such as
Assign(RATIO1, Multiply(100, Divide(point1, Add(point1, point2, point3))));
but it still didn't work for the overlay plot as the error said it cannot find the role of defined Y. Can you please let me know if there's anything wrong with the script? I also tried :"RATIO1" or name("RATIO1") or putting the exact equation above when plotting Y below...all didn't work.
DT is the database:
DT << Overlay Plot(
X( :Timestamp ),
Y(
:RATIO1
:RATIO2
:RATIO3
),
);