BookmarkSubscribeRSS Feed
Choose Language Hide Translation Bar
paulkuenzi
Community Member

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

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

12305_pastedImage_0.png

Thanks,

Paul

1 REPLY 1
txnelson
Super User

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

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