嗨,大家好,
如果數據表中存在,我如何讓 JSL 繪製一個圖形,使得 x 軸是列“A”,否則,它使用列“B”作為 x 軸? 我覺得這可能是對本次討論中解決方案的改編:
https://community.jmp.com/t5/Discussions/If-statement-inside-graph-builder-for-SendToReport-functionality/td-p/242345
這是我到目前為止的代碼(該圖顯示在儀表板中,因此使用了“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 ) )
)
)
);
提前致謝!