1) 是什麼啟發了這份願望清單請求?
☑ 很酷的新功能
☐ 可以幫助很多使用者!
☐ 刪除“錯誤”
☐ 很高興有
☐ 沒人需要它
#我的Top10_2023
-> 跳轉 19
在 GraphBuilder 中,可以將列拖曳到顏色放置區,為列中的各個項目使用不同的顏色 - 或根據此列的值套用顏色漸層。
透過將 2 列拖曳到顏色放置區,可以提供 2 列 - 然後透過變數清單指定選擇哪一列。
這使得可以將獨立的顏色設定應用於不同的子圖,就像在Graph Builder 中一樣 - 具有不同顏色設定的子圖?
遺憾的是,無法使用超過 2 種顏色:(
2) 您希望看到什麼改善?
請允許 Jmp 在顏色放置區中使用2 列以上。
3)為什麼這個想法很重要?
最多可以將 3 種顏色放入顏色放置區,但第 3 種顏色無法運作。
它就在那裡,似乎可以工作,但它並沒有做它應該做的事情。
下面的程式碼故意使用性別作為顏色的兩次(1. 和 3. 條目)。
這並不是它不起作用的原因——它只是有助於說明問題。
比較頂部和底部的圖,發現頂部的圖(使用第三個顏色列)顏色錯誤(沒有藍點,點是紅色):(
在不同的例子中,使用第二個顏色列來取代第三個顏色列。

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
Show Control Panel( 0 ),
Variables(
X( :height ),
Y( :weight ),
Y( :weight ),
Y( :weight ),
Color( :sex ),
Color( :weight ),
Color( :sex )
),
Elements( Position( 1, 1 ), Points( X, Y, Color( 3 ) ) ),
Elements( Position( 1, 2 ), Points( X, Y, Color( 2 ) ) ),
Elements( Position( 1, 3 ), Points( X, Y, Color( 1 ) ) )
)
更多願望由
具有名義建模類型的列的解決方法:
連接多個列,使用建模類型多重回應- 並可能為條目/子圖的某些組合設定透明度:
[具有 2 列的範例,即仍可使用圖形產生器 - 但可以輕鬆適用於任意數量的列
……只是為了說明它是如何工作的。使用真實/機密資料可以產生很酷的圖表]

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << New Column( "Concatenate[age,sex]",
Character,
"Multiple Response",
Formula( Char( :age ) || ", " || :sex )
);
dt << Graph Builder(
Variables(
X( :height ),
Y( :sex ),
Y( :name ),
Y( :weight ),
Color( :"Concatenate[age,sex]"n )
),
Elements( Position( 1, 1 ), Points( X, Y, Legend( 15 ) ) ),
Elements( Position( 1, 2 ), Points( X, Y, Legend( 16 ) ) ),
Elements( Position( 1, 3 ), Points( X, Y, Legend( 12 ) ) ),
SendToReport(
Dispatch( {}, "400", ScaleBox,
{Legend Model(
15,
Properties( 0, {Transparency( 0 )}, Item ID( "12", 1 ) ),
Properties( 1, {Transparency( 0 )}, Item ID( "13", 1 ) ),
Properties( 2, {Transparency( 0 )}, Item ID( "14", 1 ) ),
Properties( 3, {Transparency( 0 )}, Item ID( "15", 1 ) ),
Properties( 4, {Transparency( 0 )}, Item ID( "16", 1 ) ),
Properties( 5, {Transparency( 0 )}, Item ID( "17", 1 ) )
), Legend Model(
16,
Base( 0, 0, 0, Item ID( "12", 1 ) ),
Base( 1, 0, 0, Item ID( "13", 1 ) ),
Base( 2, 0, 0, Item ID( "14", 1 ) ),
Base( 3, 0, 0, Item ID( "15", 1 ) ),
Base( 4, 0, 0, Item ID( "16", 1 ) ),
Base( 5, 0, 0, Item ID( "17", 1 ) ),
Base( 6, 0, 0, Item ID( "F", 1 ) ),
Base( 7, 0, 0, Item ID( "M", 1 ) ),
Properties( 6, {Transparency( 0 )}, Item ID( "F", 1 ) ),
Properties( 7, {Transparency( 0 )}, Item ID( "M", 1 ) )
), Legend Model(
12,
Base( 0, 0, 0, Item ID( "12", 1 ) ),
Base( 1, 0, 0, Item ID( "13", 1 ) ),
Base( 2, 0, 0, Item ID( "14", 1 ) ),
Base( 3, 0, 0, Item ID( "15", 1 ) ),
Base( 4, 0, 0, Item ID( "16", 1 ) ),
Base( 5, 0, 0, Item ID( "17", 1 ) ),
Base( 6, 0, 6, Item ID( "F", 1 ) ),
Base( 7, 0, 7, Item ID( "M", 1 ) ),
Properties(
6,
{Marker( "Circle" ), Marker Size( 12 )},
Item ID( "F", 1 )
),
Properties(
7,
{Marker( "Circle" ), Marker Size( 12 )},
Item ID( "M", 1 )
)
)}
),
Dispatch( {}, "400", LegendBox,
{Legend Position(
{15, [0, 1, 2, 3, 4, 5, 6, 7], 16, [10, 11, 12, 13, 14, 15, 16, 17],
12, [18, 19, 20, 21, 22, 23, 8, 9]}
)}
)
)
);