Subscribe Bookmark RSS Feed

Is it possible to display selected data directly on the graph builder?

paulkuenzi

Community Member

Joined:

Dec 2, 2015

What I'm looking for is something that looks like this:

12305_pastedImage_0.png

Thanks,

Paul

1 REPLY
txnelson

Super User

Joined:

Jun 22, 2012

Here is a script that does what you want.  The example uses Graph Builder with the data table below as you imagined.  You can also see other examples for the New Data Box() in the scripting index:

    Help==>Scripting Index

Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/big class.jmp" );

New Window( "test",

       V List Box(

              gb = dt << Graph Builder(

                     Size( 533, 483 ),

                     Show Control Panel( 0 ),

                     Variables( X( :age ), Y( :height ), Group X( :sex ), Overlay( :age ) ),

                     Elements( Bar( X, Y, Legend( 10 ) ) )

              ),

              dtv = dt << New Data Box()

       )

);

dtv << close side panels( 1 );


12309_pastedImage_0.png

Jim