private static void SetupSeries(Series series, GraphConfiguration configuration, int index) { if (configuration.Palette.Count > 0) { PaletteItem item = configuration.Palette[index % configuration.Palette.Count]; series.BackHatchStyle = item.HatchStyle; series.Color = item.Color; } }
private static void SetupPoint(DataPoint point, GraphConfiguration configuration, int index) { if (configuration.Palette.Count > 0) { PaletteItem item = configuration.Palette[index % configuration.Palette.Count]; point.BackHatchStyle = item.HatchStyle; point.Color = item.Color; } }