Hello,
I have this script:
dt = Current Data Table();
listX = {"1","2"};
listY = {"test1", "test2", "test3"};
fybx = dt << FitYByX(
Y( Eval( listY ) ),
X( Eval( listX ) ),
Fit Where( :Group == "BL", Fit Spline( 0.1, Standardized, {Line Color( {213, 72, 87} )} ) ),
try(Fit Where( :Group == "Value0", Fit Spline( 0.1, Standardized, {Line Color( {57, 177, 67} )} ) )),
try(Fit Where( :Group == "Value1", Fit Spline( 0.1, Standardized, {Line Color( {64, 111, 223} )} ) )),
try(Fit Where( :Group == "Value2", Fit Spline( 0.1, Standardized, {Line Color( {207, 121, 38} )} ) )),);
it creates x by y graphs based on a list, I am now trying to add a spine line but I have 2 problems:
1. the spine line should be created based on "Group" column and it might have different values (like "Value1" might be "Value4" or "Value0" can be "Value34" sometimes) so I need to find a way to create this with a list if possible
2. it creates 1 spine line and not 4 like I want
my table
Group | test1 | test2 | test3 | 1 | 1 |
BL | 1 | 1 | 1 | 1 | 1 |
BL | 2 | 2 | 2 | 2 | 65 |
BL | 23 | 3 | 6 | 1 | 1 |
POR | 2 | 2 | 2 | 2 | 2 |
Value1 | 1 | 1 | 1 | 3 | 4 |
POR | 5 | 7 | 2 | 2 | 2 |
Value1 | 7 | 5 | 1 | 7 | 3 |
Value2 | 2 | 2 | 2 | 2 | 2 |
Value0 | 8 | 1 | 1 | 1 | 6 |
if i do it by hand its like this:
and then I pick by "Group" (I believe I need to add this to the script somehow)
then I click "flexible" --> "fit spline" --> mark the "standardize x" and click "ok"
and last thing I add is row legend