Subscribe Bookmark RSS Feed

Fit Line Color by Legend, not Group

khoep

Community Member

Joined:

Feb 11, 2014

I would like to write a script that colors fit lines by the column in the legend rather than the column that it is grouped by (assuming they are different).

Example - group by serial# so each part has a separate line, but color the lines by brand

Can a script be made generic to something like this? (obviously this one does not work)

dt << Color by column (:Brand);

dt<< marker by column (:Brand);

Bivariate(

     Y( :var_Y ),

     X( :interval ),

     Group By( :SerialNum ),

     Fit Each Value ( {Line Color( :Brand )} )

);