Anyone who can help me with changing the line style?
I would think something like below, but it seems not to work.
dt = Open( "$SAMPLE_DATA/Australian Tourism.jmp" );
gb = dt << Graph Builder(
Show Control Panel( 0 ),
Variables(
X( :Year ),
Y( :Name( "Room occupancy rate (%)" ) ),
Overlay( :Quarter )
),
Elements(
Line( X, Y, Legend( 7 ), Row order( 0 ), Summary Statistic( "Mean" ) )
),
SendToReport(
Dispatch( {}, "Year", ScaleBox, {Show Major Ticks( 0 )} ),
Dispatch(
{},
"Room occupancy rate (%)",
ScaleBox,
{Min( 54.5305429864253 ), Max( 75 ), Inc( 5 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model( 7, Properties( 3, {Line Style( "Dashed" )} ) )}
),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "Room occupancy rate vs. Year and Quarter" )}
)
)
);
reportWindow = gb << Report;
reportWindow[ ScaleBox ] << (Line[1] << Line Style( Dashed ));
My thoughts were that looking at the script, changing the line style sends something to the "ScaleBox".
But I am doing something wrong, since it is not working and also the log file tells me this:
Send Expects Scriptable Object in access or evaluation of 'Send' , reportWindow[ScaleBox] << /*###*/(Line[1] << Line Style( Dashed )) /*###*/
In the following script, error marked by /*###*/
reportWindow[ScaleBox] << /*###*/(Line[1] << Line Style( Dashed )) /*###*/