summaryrefslogtreecommitdiff
path: root/client/chart/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/chart/constants.js')
-rw-r--r--client/chart/constants.js64
1 files changed, 64 insertions, 0 deletions
diff --git a/client/chart/constants.js b/client/chart/constants.js
new file mode 100644
index 00000000..70375ba3
--- /dev/null
+++ b/client/chart/constants.js
@@ -0,0 +1,64 @@
+/* various nice HSL gradients */
+
+export const rainbow = [
+ '#9e0142',
+ '#d53e4f',
+ '#f46d43',
+ '#fdae61',
+ '#fee08b',
+ '#ffffbf',
+ '#e6f598',
+ '#abdda4',
+ '#66c2a5',
+ '#3288bd',
+ '#5e4fa2',
+ // '#888888',
+]
+
+export const colorblindSafeRainbow = [
+ '#a50026',
+ '#d73027',
+ '#f46d43',
+ '#fdae61',
+ '#fee090',
+ '#ffffbf',
+ '#e0f3f8',
+ '#abd9e9',
+ '#74add1',
+ '#4575b4',
+ '#313695',
+ // '#888888',
+]
+
+export const institutionColors = [
+ '#f2f293', // edu (yellow)
+ '#3264f6', // company (blue)
+ '#f30000', // gov/mil (red)
+]
+
+/* stuff for a 'countries' legend */
+
+export const topCountryCount = 10
+
+export const otherCountriesLabel = 'Other Countries'
+
+/* institution tuples, labels and templates */
+
+export const initialInstitutionLookup = {
+ 'edu': 0,
+ 'company': 0,
+ 'gov': 0,
+}
+
+export const institutionOrder = {
+ 'edu': 0,
+ 'company': 1,
+ 'gov': 2,
+}
+
+export const institutionLabels = {
+ 'edu': 'Academic',
+ 'company': 'Commercial',
+ 'gov': 'Government / Military',
+ 'mil': 'Government / Military',
+} \ No newline at end of file