We’re asking you to select a content label when starting a new topic in the Discussions area. Read more to find out why.
Choose Language Hide Translation Bar
Highlighted
Level II

## how to add Percentage difference on graph

Hi.

I built a graph with 1 response and two variations (X axis and warp) .

but, I would like to add a the percentage difference, as you can see in the next  photo- I made by PP

does anyone have a recommendation what is the best way to do this?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User

## Re: how to add Percentage difference on graph

Yes.

Here is an example taken right from the Scripting Index for "<< Add Graphics Script".  It uses the Bivariate platform, but << Add Graphics Script is also supported for the Graph Builder

``````Names Default To Here( 1 );
Open( "\$SAMPLE_DATA/Big Class.jmp" );
biv = Bivariate( Y( :weight ), X( :height ), FitLine );
rbiv = biv << report;
framebox = rbiv[frame box( 1 )];
Transparency( 0.5 );
Fill Color( {1.0, 0.5, 0.0} );
Polygon( [60, 72, 57], [75, 120, 120] );
);``````
Jim
3 REPLIES 3
Highlighted
Super User

## Re: how to add Percentage difference on graph

You can add the annotations by using the Objects available under the Tool Bar

Or you can use JSL and the "<< Add Graphics Script" to add the annotation programmatically

Jim
Highlighted
Level II

Thanks!

Highlighted
Super User

## Re: how to add Percentage difference on graph

Yes.

Here is an example taken right from the Scripting Index for "<< Add Graphics Script".  It uses the Bivariate platform, but << Add Graphics Script is also supported for the Graph Builder

``````Names Default To Here( 1 );
Open( "\$SAMPLE_DATA/Big Class.jmp" );
biv = Bivariate( Y( :weight ), X( :height ), FitLine );
rbiv = biv << report;
framebox = rbiv[frame box( 1 )];