嗨,大家好,
如果数据表中存在,我如何让 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 ) )
)
)
);
提前致谢!