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

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
TamedZebra
Level II

Configuring Axes for Histograms in Hover Labels (Graph Builder)

I am trying to set up hover labels in a graph builder. I plan to configure graphs such as histograms within these hover labels. However, I am unsure how to configure the vertical (Y-axis) and horizontal (X-axis) settings for the displayed graphs. I would appreciate it if you could provide some methods or suggestions.

5 REPLIES 5
jthi
Super User

Re: Configuring Axes for Histograms in Hover Labels (Graph Builder)

Normally you would modify the axis and then use modified graph as your hover label. You could also do some modifications using Axis column property. And finally there is the option of modifying the hover label  Using JMP > JMP Reports > Customize Hover Labels in JMP Graphs and  Scripting Guide > Scripting Graphs > Hover Labels 

-Jarmo

Re: Configuring Axes for Histograms in Hover Labels (Graph Builder)

To make "customized" graphlets, I usually start by making my desired hover-label graphlet in Graph Builder. Make all axis format modifications here. Then Red Triangle -> Save Script -> To Clipboard. 

Now, right-click in the main graph and click Hover Label -> Paste Graphlet. When I do this on my end, all my axis formatting is copied over correctly. Have you tried this? 

If you are comfortable with JSL scripting, you can always modify your graphlet directly with Right Click -> Hover Label -> Hover Label Editor. 

TamedZebra
Level II

Re: Configuring Axes for Histograms in Hover Labels (Graph Builder)

I understand that I need to write the JSL for the graph created in the graphlet's image tab, but I'm unsure how to write it. How should I modify the following JSL so that the graph is created with the Local Data Filter selecting items based on the information of the hovered point?

Graph Builder(
	Size( 1345, 944 ),
	Page Gap Size( 2 ),
	Variables( Y( local:_avg[1] ) ),
	Elements( Histogram( Y, Legend( 5 ) ) ),
	Local Data Filter(
		Width( 176 ),
		Conditional,
		Add Filter(
			columns( :pppppp, :mmmmmm ),
			Display( :pppppp, N Items( 15 ), Find( Set Text( "" ) ) ),
			Display( :mmmmmm, N Items( 15 ), Find( Set Text( "" ) ) )
		)
	)
)
hogi
Level XIII

Re: Configuring Axes for Histograms in Hover Labels (Graph Builder)

The filter will be automatically controlled by the hover label framework.
Any pre-existing selection will be replaced by "selecting the respective rows".

 

Re: Configuring Axes for Histograms in Hover Labels (Graph Builder)

How to make the graphlet show only the data for the datapoint being hovered over: that happens automatically. For example, if I hover over a point at (X=5, Y=7), then my hover label graphlet will show only the data where X=5 and Y=7. It does this by automatically creating a local data filter. I do not need to include any data filter in my graphlet script for this to happen. (You can see this by clicking on the graphlet and looking at the Graph Builder window that opens.)

Interesting side note: this automatically created local data filter seems to over-rule any local data filter that was in the graphlet script...

In case you were asking whether you can create a hover label which contains an interactive graph and local data filter, within the hover label? I'm not aware of any way to do that. As far as I know, the "graphlet" is always a static image, not an interactive graph. 

Hope this helps answer your question! 

Recommended Articles