public static DataSeries SetSeriesColorMode(DataSeries series, ColorMode mode) { series.SetColorMode(mode); return series; }