嗨朋友們,
我在圖形生成器中創建了一個具有多行(多列)的圖表。 當我標記列的值時(:sbl_rate;:測試模組速率;:fab/sort 速率;:組裝速率),而不是每個點都對應於其值進行標記,而是顯示每個點的所有行值。請給我建議。

可能有一種方法可以使用行標籤來做到這一點,但一個選擇(儘管很費力)是添加帶有標籤的透明條。這可以透過以下方式以圖形方式完成:
- 從你的圖表開始
- 刪除所有行標籤
- 對於顯示的每個值(SBL_rate 和另外 3 個)
- 在頂部圖表中,右鍵單擊,新增一個欄
- 在左下角展開「變數」並只選擇一個 y 變數
- 將條形樣式變更為單一
- 將標籤設定為值
- 在圖例設定中將條形透明度變更為零
- 變更圖例設定以僅顯示底部的線條和條形

Names default to here( 1 );
dt1 = Open( "$Sample_data/Big Class.jmp", Invisible );
dt1Tab = dt1 << Tabulate(
Set Format( N( 9, "Best" ) ),
Add Table(
Column Table( Analysis Columns( :height, :weight ) ),
Column Table( Grouping Columns( :sex ) ),
Row Table( Grouping Columns( :age ) )
)
);
dt2 = dt1Tab << Make Into Data Table;
dt1Tab << Close Window();
dt1 << Close Window();
dt2 << Graph Builder(
Size( 929, 449 ),
Show Control Panel( 0 ),
Variables(
X( :age ),
Y( :Name( "Sum(height)" ) ),
Y( :Name( "Sum(weight)" ), Position( 1 ) ),
Y( :M ),
Y( :F, Position( 2 ) )
),
Elements(
Position( 1, 1 ),
Line( X, Y( 1 ), Y( 2 ), Legend( 13 ) ),
Points( X, Y( 1 ), Y( 2 ), Legend( 16 ), Jitter( 0 ) ),
Bar(
X,
Y( 2 ),
Legend( 19 ),
Bar Style( "Single" ),
Label( "Label by Value" )
),
Bar(
X,
Y( 1 ),
Legend( 20 ),
Bar Style( "Single" ),
Label( "Label by Value" )
)
),
Elements( Position( 1, 2 ), Bar( X, Y( 1 ), Y( 2 ), Legend( 24 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
13,
Properties( 1, {Line Color( 51 ), Fill Color( 0 )} )
), Legend Model(
16,
Base( 0, 0, 0 ),
Base( 1, 0, 0 ),
Properties( 1, {Line Color( 19 ), Fill Color( 0 )} )
), Legend Model(
19,
Properties( 0, {Fill Color( 2 ), Transparency( 0 )} )
), Legend Model(
20,
Properties( 0, {Fill Color( 2 ), Transparency( 0 )} )
)}
),
Dispatch(
{},
"Graph Builder",
FrameBox,
{Grid Line Order( 4 ), Reference Line Order( 8 )}
),
Dispatch(
{},
"400",
LegendBox,
{Legend Position(
{13, [0, 1], 16, [-1, -1], 19, [-1], 20, [-1], 24, [2, 3]}
), Position( {0, 1, -1, -1, -1, -1, 2, 3} )}
)
)
);我認為您只想按“SBL_lot_qty”進行標記。 但請注意(在欄位面板資料表的),在其他四個變數的名稱後面有一個小「標籤」圖示。 您可以右鍵單擊並選擇“標記/取消標記”以按照您想要的方式進行設定。