Skip to content

Commit 03f8a56

Browse files
committed
Add Redash20 and Starfish color palettes
1 parent 6e710ff commit 03f8a56

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

viz-lib/src/visualizations/ColorPalette.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,48 @@ const D3Category10 = {
7474
10 : "#17becf",
7575
}
7676

77+
const Redash20 = {
78+
1 : "#007F78",
79+
2 : "#008A7D",
80+
3 : "#009582",
81+
4 : "#14A18B",
82+
5 : "#35AD95",
83+
6 : "#59BA9F",
84+
7 : "#7BC5A7",
85+
8 : "#9CD0AF",
86+
9 : "#B9DBB8",
87+
10 : "#D1E5C1",
88+
11 : "#E3ECC9",
89+
12 : "#F1F3CE",
90+
13 : "#FDF8D0",
91+
14 : "#FCE8BE",
92+
15 : "#F6C297",
93+
16 : "#F1AE83",
94+
17 : "#EB996E",
95+
18 : "#E6845A",
96+
19 : "#E06F45",
97+
20 : "#D95A32",
98+
21 : "#CE4B2B",
99+
22 : "#C14026",
100+
23 : "#B43621",
101+
24 : "#A82C1D"
102+
}
103+
104+
const Starfish = {
105+
1 : "#F18784",
106+
2 : "#FBBC71",
107+
3 : "#F7AA46",
108+
4 : "#AFC570",
109+
5 : "#4FC8A1",
110+
6 : "#6CD0FB",
111+
7 : "#8DA6D0",
112+
8 : "#5C76A6",
113+
9 : "#C27C9F",
114+
10 : "#F6A2CA",
115+
11 : "#D6A8BB",
116+
12 : "#CB5051"
117+
}
118+
77119
let ColorPalette = {
78120
...BaseColors,
79121
...AdditionalColors,
@@ -88,18 +130,24 @@ export const AllColorPalettes = {
88130
"Viridis" : Viridis,
89131
"Tableau 10" : Tableau,
90132
"D3 Category 10" : D3Category10,
133+
"Redash 2.0" : Redash20,
134+
"Starfish" : Starfish,
91135
}
92136

93137
export const AllColorPaletteArrays = {
94138
"Redash" : ColorPaletteArray,
95139
"Viridis" : values(Viridis),
96140
"Tableau 10" : values(Tableau),
97141
"D3 Category 10" : values(D3Category10),
142+
"Redash 2.0" : values(Redash20),
143+
"Starfish" : values(Starfish),
98144
};
99145

100146
export const ColorPaletteTypes = {
101147
"Redash" : 'discrete',
102148
"Viridis" : 'continuous',
103149
"Tableau 10" : 'discrete',
104150
"D3 Category 10" : 'discrete',
151+
"Redash 2.0" : 'continuous',
152+
"Starfish" : 'discrete',
105153
}

0 commit comments

Comments
 (0)