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]}
)}
)
)
);