cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
hogi
Level XII

How to prevent GraphBuilder from resetting the Marker type ?!?

Does somebody use GraphBuilder in his/her Dashboards - with manually selected markers?

If yes, how do you prevent Graph Builder from overwriting YOUR settings?

 

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Graph Builder(
	Variables( X( :height ), Y( :weight ), Overlay( :sex ), Color( :age ) ),
	Elements( Points( X, Y, Legend( 1 ) ) ),
	Local Data Filter( Add Filter( columns( :sex ) ) ),
	SendToReport(
		Dispatch( {}, "400", ScaleBox,
			{Legend Model(
				1,
				Properties( 7, {Marker( "Dot" ), Marker Size( 30 )}, Item ID( "M", 1 ) )
			)}
		),
		Dispatch( {}, "Graph Builder", FrameBox, {Marker Drawing Mode( "Outlined" )} )
	)
)

The background: there are some points in my data set which are not in focus at the moment, but should be plotted somehow.
The idea: show them as tiny gray dots.

But it seems that the setting for marker state DOT is deleted whenever the respective legend item is excluded by a data filter.

One could say: no wonder, how could Jmp remember such a setting when the legend item is gone?

Actually Jmp can remember may other marker settings - and the marker size - but not this one.

 

3 REPLIES 3
hogi
Level XII

Re: How to prevent GraphBuilder from resetting the Marker type ?!?

Associated with this bug:
For value color and value order there is the possibility to define a column property - to automatically define the setting for all plots.

Surprisingly, for value marker there is no such setting:
new Column Property: Value Markers 

jthi
Super User

Re: How to prevent GraphBuilder from resetting the Marker type ?!?

I think the issue is there when you use the "default" marker(s?) (I think Dot is the default one).

 

If you check the script when the graph breaks there is no mention of "Dot" and JMP will use "new" default based on Color + Overlay

jthi_2-1707316515296.png

 

And this seems to work fine if you have just two groups

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt << Graph Builder(
	ignore platform preferences(1),
	Variables(X(:height), Y(:weight), Overlay(:sex), Color(:age)),
	Elements(Points(X, Y, Legend(1))),
	Local Data Filter(Add Filter(columns(:sex))),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(1, Properties(7, {Marker("FilledCircle"), Marker Size(25)}, Item ID("M", 1)))}
		),
		Dispatch({}, "Graph Builder", FrameBox, {Marker Drawing Mode("Outlined")})
	)
);
-Jarmo
hogi
Level XII

Re: How to prevent GraphBuilder from resetting the Marker type ?!?

Yes, this is the issue. Jmp can remember may other marker settings - and the marker size - but not the default one.
This reminds me of:
Do you use the preferences? 

 

Seems that the logic behind Jmp crashes when a user sets something back to default. Such cases are automatically eliminated from the code.

 

Here it's just a wrong marker - and the user can set it back ... 5 times a day.

 

For Data Filter/Conditional the issue is much larger.