Build the graph as you want it to be. Then using the annotation tool icons select the text icon
and add in the text you want on the place on the graph where you want it. Right clicking on the annotation will allow you to set the font and color etc.
Then go to the red triangle and select to save the script to a script window, and you will get a script that will create the graph and the annotation.
Graph Builder(
Size( 522, 486 ),
Show Control Panel( 0 ),
Variables(
X( :age, Order By( :age, Descending, Order Statistic( "N" ) ) ),
Group X( :sex )
),
Elements( Bar( X, Legend( 8 ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
FrameBox,
Add Text Annotation(
Text( "Overlay Text Here" ),
Fixed Size( 0 ),
Text Box( {46, 31, 224, 68} ),
Text Color( "Medium Dark Red" ),
Font( "Segoe UI", 14, "Bold" ),
Filled( 0 )
)
)
)
);
Jim