- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Update Shape Column
Hello everybody,
I would like to know if there is a way to update the Shape Column property of the Graph Builder. I tried the following script, but it just opens the window to select the new column, so I've probably missed something... Thanks in advance for your help!
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
GB = dt <<Graph Builder(
Size( 528, 456 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
Elements( Points( X, Y, Legend( 6 ), Set Shape Column( :age ) ) )
);
// Change the Shape Column
gbb = Report( gb )[Graph Builder Box( 1 )];
gbb <<update element (1,1,1,{Set Shape Column(:name)});
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Update Shape Column
I'm not sure how to do it with the Update Element
message (seems like a bit of a bug there), but you can do the same thing by sending messages to the Marker Seg
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
GB = dt <<Graph Builder(
Size( 528, 456 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
Elements( Points( X, Y, Legend( 6 ), Set Shape Column( :age ) ) )
);
// Change the Shape Column
gbb = Report( gb )[Frame Box( 1 )];
seg = gbb << Find Seg( Marker Seg( 1 ) );
seg << Set Marker Draw Column(:name);
Jordan
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Update Shape Column
I'm not sure how to do it with the Update Element
message (seems like a bit of a bug there), but you can do the same thing by sending messages to the Marker Seg
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
GB = dt <<Graph Builder(
Size( 528, 456 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
Elements( Points( X, Y, Legend( 6 ), Set Shape Column( :age ) ) )
);
// Change the Shape Column
gbb = Report( gb )[Frame Box( 1 )];
seg = gbb << Find Seg( Marker Seg( 1 ) );
seg << Set Marker Draw Column(:name);
Jordan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Update Shape Column
Thanks for your prompt reply @ErraticAttack, that's exactly what I was looking for!