Showing results for 
Show  only  | Search instead for 
Did you mean: 

πŸ™ Graph Builder: revert changed axis labels

☐ cool new feature
β˜‘ could help many users!

β˜‘ removes a β€žbugβ€œ

☐ nice to have

☐ nobody needs it


What inspired this wish list request? 


Sometimes a user wants to revert a label and cannot do this:

  1. In Jmp there is a severe bug: after a manual change of an axis label,when you add or remove subplots, this label doesn't stick to the respective axis - the label sticks to the "position": Manual axis labels are 'mixed up' when plotting multiple columns 
  2. If a user deletes the text label, he has no access anymore to the label - so: no possibility to edit the label.
    This issue will be fixed in Jmp 18
  3. nice feature: If a user deletes the title of an Outlinebox, the title bar gets removed. But there is no possibility restore the title bar.


What is the improvement you would like to see? 

Please add commands to revert labels:

a) revert a specific axis label

b) revert all labels of the Graph.




Why is this idea important? 

The feature will make the life of a Jmp user much better.



more wishes by  hogi_2-1702196401638.png

1 Comment
Level XI


Local( {outlineBoxes,scaleBoxes, XMLs, CharIds, Ids,teb}, 
	outlineBoxes = Current Report() << Xpath( "//OutlineBox" );
	For Each( {ob}, outlineBoxes,
		scaleBoxes = ob << Xpath( "//ScaleBox" );
		// there is definietely any easier way than this one to get the Ids ...
		XMLs = Transform Each( {sb}, scaleBoxes, Word( 1, sb << Get XML, "\!n" ) ); // first line 
		CharIds = Transform Each( {xmlCode}, XMLs, Regex( xmlCode, "charID=\!"(.*?)\!"", "\1" ) );
		Ids = Transform Each( {xmlCode}, XMLs, Regex( xmlCode, " ID=\!"(.*?)\!"", "\1" ) );

		For Each( {axisLabel, idx}, CharIds,
			If( Not( axisLabel == "" ),
					teb = (((((ob << Xpath( "//AxisBox[@charID=" || Ids[idx] || "]//.." ))<<parent)<<prev sib)<<child) << child)[1];
					teb << set text( axisLabel );