Hi everyone,
How do I make JSL plot a graph such that the x-axis is column 'A' if it exists in the data table, else, it uses column 'B' as the x-axis? I feel that it could be an adaptation of the solutions in this discussion:
If statement inside graph builder for SendToReport functionality
This is the code I have so far (the plot is displayed in a dashboard, hence the use of 'Platform()'):
Report9 = Platform(dt,
gb9 = Graph Builder(
Size( 534, 456 ),
Show Control Panel( 0 ),
Fit to Window( "Maintain Aspect Ratio" ),
Variables( X( :A ), Y( :Name("Population") ) ),
Elements(
Points( X, Y, Legend( 7 ) ),
Smoother( X, Y, Legend( 8 ) )
)
)
);
Thanks in advance!