如果這是您想要的圖表形式

這是生成上圖的 JSL
Names Default To Here( 1 );
Data Table( "Weight Checks for JP" ) << Bivariate(
Y( :Value ),
X( :CreatedDateTime ),
Where(
:ValueName == "Dispense Weight Chec" & :Site == "SAN" & :ProcessName ==
"CLOUE Unload Station" & :EQNumber == "EQ-902280-001"
),
SendToReport(
Dispatch(
{},
"CreatedDateTime",
ScaleBox,
{Label Row( Label Orientation( "Angled" ) )}
),
Dispatch( {}, "Bivar Plot", FrameBox, {Frame Size( 910, 194 )} )
)
);
BivR = Current Report()[Outline Box( 1 ), AxisBox( 2 )];
For( i = 1, i <= N Rows( Data Table( "Bottle Change Data" ) ), i++,
BivR << Add Ref Line(
Informat( Data Table( "Bottle Change Data" ):Date_Time[i], "m/d/y h:m" ),
"Solid",
"Black",
Data Table( "Bottle Change Data" ):Description[i] || " " ||
Data Table( "Bottle Change Data" ):Part_Number[i],
1
)
);
進入 JSL 時,請使用討論輸入區域頂部的 圖示。它使程式碼的閱讀變得更加容易
我想從一個表中獲取日期列表,並將它們用作 X x Y 中的參考線,以日期作為 X 軸。
日期格式採用表中的格式:12/18/2023 14:14。我還想將標籤新增到同一個表中的每一行。本例為 EPOXI MT25700-02
圖表的腳本顯示了我希望能夠從表中添加到圖表中作為參考線的內容。我想從單獨的表中獲取日期和批號列表,並將它們作為圖表中的參考線。
Bivariate(
Y(:Value),
X(:CreatedDateTime),
Where(
:ValueName == "Dispense Weight Chec" & :Site == "SAN" & :ProcessName ==
"CLOUE Unload Station" & :EQNumber == "EQ-902280-001"
),
SendToReport(
Dispatch(
{},
"CreatedDateTime",
ScaleBox,
{Add Ref Line(3785753640, "Solid", "Black", "EPOXI MT25700-02", 1)}
),
Dispatch({}, "Bivar Plot", FrameBox, {Frame Size(910, 194)})
)
)