cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
AdditiveRange10
This widget could not be displayed.
" alt = "Level III"/> AdditiveRange10
Level III

Textlet for graph with multiple Y variables in the same FrameBox

Hello All,

I have used the textlet command before and managed to show certain values when hovering over a bar graph. However, now I have a graph which has multiple Y variables in the same plot and the commands I have used before are not working. Is it even possible to use the textlet on graphs with multiple Y variables?

 

Any help would be appreciated.

This is what the plot looks like so I would like to have different values shown when hovering over the  red blue or green bars

AdditiveRange10_0-1750716866134.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Textlet for graph with multiple Y variables in the same FrameBox

Which JMP version are you using? What would you like to display? Those different bars do have possibility of showing different hover labels but it might require some extra work, Scripting Guide > Scripting Graphs > Hover Labels > Work with the Hover Label Execution Context .

 

You can play around with this example to try and understand what you could do (local:_measurements is what you need)

jthi_3-1750738196798.png

JSL Variables

local:encodedWhere = XML Encode(local:_where);
Show(Namespace("local") << Get Contents());

HTML Markup

<b>Groupings</b>: {local:_groupings}
<b>Measurements</b>: {local:_measurements}
<b>Summary statistic</b>: {local:_summaryStatistic}
<b>Filter columns</b>: {local:_filters}
<b>Where clause</b>: {local:encodedWhere}
<b>Graph type</b>: {local:_displaySegName}
<b>Data table</b> {local:_dataTable}
<b>Drill depth</b>: {local:_drillDepth}
<b>First Row</b>: {local:_firstRow}
<b>Underlying Rows</b>: {local:_underlyingRows}

Notice that Measurements is different

jthi_5-1750738236876.png  jthi_4-1750738229228.png

 

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: Textlet for graph with multiple Y variables in the same FrameBox

Which JMP version are you using? What would you like to display? Those different bars do have possibility of showing different hover labels but it might require some extra work, Scripting Guide > Scripting Graphs > Hover Labels > Work with the Hover Label Execution Context .

 

You can play around with this example to try and understand what you could do (local:_measurements is what you need)

jthi_3-1750738196798.png

JSL Variables

local:encodedWhere = XML Encode(local:_where);
Show(Namespace("local") << Get Contents());

HTML Markup

<b>Groupings</b>: {local:_groupings}
<b>Measurements</b>: {local:_measurements}
<b>Summary statistic</b>: {local:_summaryStatistic}
<b>Filter columns</b>: {local:_filters}
<b>Where clause</b>: {local:encodedWhere}
<b>Graph type</b>: {local:_displaySegName}
<b>Data table</b> {local:_dataTable}
<b>Drill depth</b>: {local:_drillDepth}
<b>First Row</b>: {local:_firstRow}
<b>Underlying Rows</b>: {local:_underlyingRows}

Notice that Measurements is different

jthi_5-1750738236876.png  jthi_4-1750738229228.png

 

-Jarmo

Recommended Articles