Xan,
在 JMP 15 中,您的腳本確實容納純白色非堆疊條形,但是,這需要透過腳本指定,模式選擇器沒有「無」選項。預設是填滿顏色。 然後,如果您選擇純色左側的面板,輪廓將是先前的純色和空條或白色條。現在點擊圖例,然後選擇填滿顏色為白色,並且該條與背景混合,如果使用者不認識或不知道正確的步驟順序(選擇一種顏色,而不是白色,然後轉到圖案選擇器並選擇固體旁邊的那個)。

我提出這個建議是因為順序相當奇怪。 我在回覆一位想要每個堆疊長條圖都有黑色輪廓的用戶後提出了這個建議。
這是一個用於建立具有 2 個嵌入腳本的表的腳本。 第一個腳本寫在使用者回覆中,第二個腳本顯示填滿圖案。 現在,如果選擇空白圖案,則輪廓將保留。
只是我的 2 美分,如果顏色與背景顏色相同並且選擇了空白圖案,則應該使用一些相反的顏色或黑色作為輪廓,或者提示用戶是否需要輪廓。 只是想法,不是長條圖的大用戶,我知道如何解決。
New Table( "GraphBuilder_CustomBars_Script",
Add Rows( 11 ),
New Script(
"Count vs. Day solid trick",
Graph Builder(
Size( 531, 450 ),
Show Control Panel( 0 ),
Variables( X( :Day ), Y( :Count ), Overlay( :Grades ) ),
Elements(
Bar( X, Y, Overlay( 0 ), Legend( 6 ), Summary Statistic( "Sum" ) ),
Bar( X, Y, Legend( 7 ), Bar Style( "Stacked" ) )
),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
6,
Properties( 0, {Fill Color( 0 )}, Item ID( "Sum", 1 ) )
), Legend Model(
7,
Properties( 3, {Fill Color( 0 )}, Item ID( "Total", 1 ) )
)}
),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "Count vs. Day" )}
),
Dispatch(
{},
"Graph Builder",
FrameBox,
{DispatchSeg( BarSeg( 1 ), Set Width Proportion( 0.56 ) )}
),
Dispatch(
{},
"400",
LegendBox,
{font( "Segoe UI", 9, "Bold" ),
Legend Position( {6, [-1], 7, [0, 1, 2, 3]} ),
Position( {-1, 0, 1, 2, 3} )}
)
)
)
),
New Script(
"Count vs. Day with Pattern",
Graph Builder(
Variables( X( :Day ), Y( :Count ), Overlay( :Grades ) ),
Elements( Bar( X, Y, Legend( 7 ), Bar Style( "Stacked" ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
7,
Properties(
0,
{Fill Pattern( "left slant light" )},
Item ID( "A", 1 )
),
Properties(
1,
{Fill Pattern( "vertical medium" )},
Item ID( "B", 1 )
),
Properties(
2,
{Fill Pattern( "h wave heavy" )},
Item ID( "C", 1 )
)
)}
)
)
)
),
New Column( "Day",
Character( 6 ),
"Nominal",
Set Values(
{"First", "First", "First", "Second", "Second", "Second", "Second",
"Third", "Third", "Third", "Third"}
),
Set Display Width( 49 )
),
New Column( "Grades",
Character( 13 ),
"Nominal",
Set Values(
{"A", "B", "Total", "A", "B", "C", "Total", "A", "B", "C", "Total"}
),
Set Display Width( 48 )
),
New Column( "Count",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [2, 2, 0.05, 2, 1, 1, 0.05, 1, 1, 2, 0.05] ),
Set Display Width( 48 )
)
);
可能的解決方法是,為該欄指定一個空模式:
Graph Builder(
Size( 524, 444 ),
Show Control Panel( 0 ),
Variables( X( :age ), Y( :height ) ),
Elements( Bar( X, Y, Legend( 4 ) ) ),
SendToReport(
Dispatch( {}, "400", ScaleBox,
{Legend Model( 4,
Properties( 0, {Fill Pattern( "none" )}, Item ID( "Mean", 1 ) )
)}
)
)
);