Oh, sorry. I was off in Graph Builder land while you were using the Overlay Plot platform. Whoops!
Same general principle applies, however. After you save your script, edit the script to include the additional variable.
For example, if I start with 3 response variables Y1, Y2, and Y3 and totally customize my chart, I could get the following script:
Overlay Plot(
X( :X ),
Y( :Y1, :Y2, :Y3 ),
Function Plot( 1 ),
:Y1(
Connect Color( 35 ),
Overlay Marker Color( 35 ),
Overlay Marker( 8 ),
Line Width( "Thin" )
),
:Y2(
Connect Color( 68 ),
Overlay Marker Color( 68 ),
Overlay Marker( 1 ),
Line Style( 2 ),
Line Width( "Thin" )
),
:Y3(
Connect Color( 37 ),
Overlay Marker Color( 37 ),
Line Style( 1 ),
Line Width( "Thin" )
),
SendToReport(
Dispatch(
{},
"Overlay Plot Graph",
FrameBox,
{DispatchSeg( Marker Seg( 1 ), {Color( "Medium Light Red" )} ),
DispatchSeg( Marker Seg( 2 ), {Color( "Light Green" )} ),
DispatchSeg( Marker Seg( 3 ), {Color( "Medium Light Blue" )} ),
DispatchSeg(
CustomStreamSeg( 1 ),
{Line Color( "Medium Dark Red" ), Line Style( "Dotted" )}
)}
)
)
);
Now, let's say I have a new response Y4. I can just edit 1 line in the script to add this variable:
Y( :Y1, :Y2, :Y3, :Y4 ),
Now, I get the same plot with my customizations for the Y1 through Y3, but I also have my new column as an additional line on the overlay plot.
-- Cameron Willden