Subscribe Bookmark RSS Feed

graph builder reference line

vinkane

Community Trekker

Joined:

Dec 23, 2013

Need to have the grapg builder reference line value use the row number selected with the data filter. The graph builder staced bar chart updates with the data filter selection but not the reference line
Newd to have the :Target cell value as the reference. The only method I found so far is to use the row number n the brackets

{Format( "Percent", 10, 3 ), Add Ref Line(

                        :Target[],

                        Solid,

                        "Black",

                        "Tgt ",

                        2

1 REPLY
David_Burnham

Super User

Joined:

Jul 13, 2011

I'm not sure I understand this.  The Data Filter is used to select columns of a table - so I don't understand where this row number is that is being used to generated a reference line.

But lets say that I have a graph with a reference line, and as a result of some "event" (selection from a data filter?) I want to update the graph.  IF I can react to the event, then I can REMOVE the reference line and ADD a new one (add ref line and remove ref line are messages that can be sent to the axis display box). 

The simplest way to react to events is to let JMP handle it by using automatic recalc - but that will pick up changes to the exclude and hidden row states - both of which can be controlled through the data filter - but will not pick up this "thing" you want to use for your reference line level.  Using a global variable wont work because  the value not the variable gets encoded.  So you need to handle the event yourself which you can do by using the Make Row State Handler data table message.

-Dave