我正在使用 GraphBuilder 并想修改水平旋转的 Y 轴变量名称的宽度。 虽然我可以在 GB 中旋转文本,但更改 Set Wrap... 参数似乎没有像我预期的那样工作。 展示,
我打开大类数据表并将身高和体重列名称更改为以下内容:
“已经变长的高度列名称”
“变长的权重列名”
以下 GB 脚本是我为说明问题而创建的简单图表的结果。 在 GB 中,Set Wrap... 参数设置为 100 并选择了 Extend this to other text boxes 开关。 此参数更改不会反映在生成的脚本中,选择任何小于 100 的值都不会影响 Y 轴变量名称的宽度。
Graph Builder(
Size( 1408, 513 ),
Show Control Panel( 0 ),
Graph Spacing( 3 ),
Variables(
X( :age ),
Y( :height column name that has been made longer ),
Y( :weight column name that has been made longer )
),
Elements( Position( 1, 1 ), Points( X, Y, Legend( 4 ) ) ),
Elements( Position( 1, 2 ), Points( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch( {}, "Y title", TextEditBox, {Rotate Text( "Horizontal" ) } ),
Dispatch( {}, "Y 1 title", TextEditBox, {Rotate Text( "Horizontal" ) } )
)
);
所以,我想知道这是一个错误还是预期的行为?
另外,我很好奇是否有办法在 JSL GB 代码中强制换行。我尝试了以下方法,但无法影响 Y 轴换行行为的任何变化
Graph Builder(
Size( 1408, 513 ),
Show Control Panel( 0 ),
Graph Spacing( 3 ),
Variables(
X( :age ),
Y( :height column name that has been made longer ),
Y( :weight column name that has been made longer )
),
Elements( Position( 1, 1 ), Points( X, Y, Legend( 4 ) ) ),
Elements( Position( 1, 2 ), Points( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch( {}, "Y title", TextEditBox, {Rotate Text( "Horizontal" ), Set Wrap (50) } ),
Dispatch( {}, "Y 1 title", TextEditBox, {Rotate Text( "Horizontal" ), Set Wrap (50) } )
)
);嗨特拉平。 Graph Builder 中的 Set Wrap 功能没有按您预期的那样工作,这是一个错误。 我们的开发人员已意识到该问题,并打算在未来的版本中解决它。 我们对不便表示抱歉。