Dear all,
I would like to create a graph with multi Y with both left and right, and I want to set transparent to the bars on the left side only
this JSL works but once I manually modified the graph and then click save as script, the transparent setting is gone. is anybody aware why and how to achieve this? thanks!
df = Current Data Table();
cols = df << Get Column Names( String );
gb = Graph Builder( Size( 764, 644 ), Variables( X( :time), ) );
gbb = Report( gb )[Graph Builder Box( 1 )];
cnt = 0;
For Each( {val, ind}, cols,
If( ind == 1, Continue() );
If( Mod( ind, 2 ) == 0,
pat = val
);
If( Mod( ind, 2 ) == 1 & Left( pat, 6 ) == Left( val, 6 ), // data like GROUP1_val GROUP1_
cnt += 1;
gbb << Add Variable( Expr( {As Column( pat ), Role( "Y" ), Side( "Right" )} ) );
gbb << Add Variable( Expr( {As Column( val ), Role( "Y" ), Position( cnt )} ) );
gbb << Update Element( 1, cnt, 2, {Bar( X, Y )} );
gbb << Update Element( 1, cnt, 1, {Bar( X, Y ), Label( "Label by Value" )} );
);
);
For( i = 1, i <= cnt, i++,
(Report( gb )[FrameBox( i )] << Find Seg( "Bar Seg" )) << Transparency(0);
);