Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { Color } from "../../coreTable/CoreTableConstants" export const ContinentColors = { Africa: "#923E8B", Antarctica: "#5887A1", Asia: "#2D8587", Europe: "#4C5C78", "North America": "#E04E4B", Oceania: "#A8633C", "South America": "#932834", } export interface ColorSchemeInterface { name: string colorSets: Color[][] // Different color sets depending on how many distinct colors you want singleColorScale?: boolean isDistinct?: boolean displayName?: string } // Note: TypeScript does not currently support extending or merging enums. Ideally we would have 2 enums here (one for custom and one for brewer) and then just merge them. // https://github.com/microsoft/TypeScript/issues/17592 export enum ColorSchemeName { // Brewer schemes: YlGn = "YlGn", YlGnBu = "YlGnBu", GnBu = "GnBu", BuGn = "BuGn", PuBuGn = "PuBuGn", BuPu = "BuPu", RdPu = "RdPu", PuRd = "PuRd", OrRd = "OrRd", YlOrRd = "YlOrRd", YlOrBr = "YlOrBr", Purples = "Purples", Blues = "Blues", Greens = "Greens", Oranges = "Oranges", Reds = "Reds", Greys = "Greys", PuOr = "PuOr", BrBG = "BrBG", PRGn = "PRGn", PiYG = "PiYG", RdBu = "RdBu", RdGy = "RdGy", RdYlBu = "RdYlBu", Spectral = "Spectral", RdYlGn = "RdYlGn", Accent = "Accent", Dark2 = "Dark2", Paired = "Paired", Pastel1 = "Pastel1", Pastel2 = "Pastel2", Set1 = "Set1", Set2 = "Set2", Set3 = "Set3", PuBu = "PuBu", "hsv-RdBu" = "hsv-RdBu", "hsv-CyMg" = "hsv-CyMg", // Custom schemes: Magma = "Magma", Inferno = "Inferno", Plasma = "Plasma", Viridis = "Viridis", continents = "continents", stackedAreaDefault = "stackedAreaDefault", "owid-distinct" = "owid-distinct", } |