I am using the fit model to draw fit lines based on the value of my column 'Tools'. I have 2 values in this column 'a' and 'b'. I need a red fit line for 'a' and blue fit line for 'b' in all scenarios. Seems like the default colors being used in fit models is red for the fit line of the first value and blue for the following, something that I have leveraged to get the required functionality, i.e red fit line for 'a' and blue fit line for 'b' by using value ordering in the code below. It works perfect when I have both “a” and “b” in my Tools column, ‘a’ gets red color(default color) and ‘b’ gets blue. But in scenarios where my 'Tools' column has only value ‘b', the fit line for ‘b’ shows up in red color(default color). Is there some way I can trick it such that ‘b’ still gets a blue fit line ? Basically, I need control over the colors used for the fit line in the Fit Model. Is that possible in the code below ?
Column( "Tools" ) << Set Property( value ordering, {"a", "b"} );
vdtTmp << append(
H List Box(
vFit = Fit Model(
Y( :Value ),
Effects( :Date, :Tools ),
Personality( Standard Least Squares ),
Emphasis( Effect Leverage ),
Run Model(
:Value << {Pareto Plot( 0 ), Plot Actual by Predicted( 1 ), Plot Residual by Predicted( 1 ),
Plot Effect Leverage( 1 )}
),
invisible
),
)
);