GObj=Graph Builder(
Size( 1221, 652 ),
Show Control Panel( 0 ),
Variables( X( :Date ), Y( :Close_s ) ),
Elements( Box Plot( X, Y, Legend( 5 ) ) ),
Local Data Filter(
Add Filter(
columns( :Date, :Name ),
Where( :Date >= 01Jun2022 ),
Where( :Name == "Anglo American" )
)
),
SendToReport(
Dispatch(
{},
"Graph Builder",
OutlineBox,
{Set Title( "Variability Plot Low Close and High values for the day" ),
Image Export Display( Normal )}
),
Dispatch(
{},
"Close_s",
ScaleBox
// {Min( 100000 ), Max( 200000 ), Inc( 50000 ), Minor Ticks( 4 )
// Add Ref Line( 130000, "Solid", "Dark Red", "bought", 1 )}
),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "Low, Close & High againt date" )}
)
)
);
DateValue=date mdy(07,12,2022);
Report( GObj )[AxisBox( 1 )] << {Add Ref Line(DateValue, "Solid", "Blue", "Date Bought", 1 )};
Report( GObj )[AxisBox( 2 )] << {Add Ref Line(130000, "Solid", "Green", "Value Bought", 1 )};