summaryrefslogtreecommitdiff
path: root/client/chart/constants.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-06-28 02:06:53 -0400
committerJules Laplace <julescarbon@gmail.com>2019-06-28 02:06:53 -0400
commitfe418ace1873b81fa3d2c622d3b414dcacbe7b56 (patch)
tree1751236c335fc503502de0ea6867f6e043c0e9ac /client/chart/constants.js
parent3d2967573738154b4dd50bdd4a600aff42f276ae (diff)
more options... add download csv link and search
Diffstat (limited to 'client/chart/constants.js')
-rw-r--r--client/chart/constants.js45
1 files changed, 34 insertions, 11 deletions
diff --git a/client/chart/constants.js b/client/chart/constants.js
index 6fe94433..0f23f06b 100644
--- a/client/chart/constants.js
+++ b/client/chart/constants.js
@@ -48,12 +48,35 @@ export const colorblindSafeRainbow = [
// '#888888',
]
+export const categoryRainbow = [
+ '#5e4fa2',
+ '#66c2a5',
+ '#d53e4f',
+ '#f46d43',
+ '#9e0142',
+ '#3288bd',
+ '#fee08b',
+ '#abdda4',
+ '#e6f598',
+ '#fdae61',
+ '#ffffbf',
+ // '#888888',
+]
+
export const institutionColors = [
'#f2f293', // edu (yellow)
'#3264f6', // company (blue)
'#f30000', // gov/mil (red)
]
+export const colorTable = {
+ rainbow,
+ bigRainbow,
+ colorblindSafeRainbow,
+ institutionColors,
+ categoryRainbow,
+}
+
/* stuff for a 'countries' legend */
export const topCountryCount = 10
@@ -63,20 +86,20 @@ export const otherCountriesLabel = 'Other Countries'
/* institution tuples, labels and templates */
export const initialInstitutionLookup = {
- 'edu': 0,
- 'company': 0,
- 'gov': 0,
+ edu: 0,
+ company: 0,
+ gov: 0,
}
export const institutionOrder = {
- 'edu': 0,
- 'company': 1,
- 'gov': 2,
+ edu: 0,
+ company: 1,
+ gov: 2,
}
export const institutionLabels = {
- 'edu': 'Academic',
- 'company': 'Commercial',
- 'gov': 'Military / Government',
- 'mil': 'Military / Government',
-} \ No newline at end of file
+ edu: 'Academic',
+ company: 'Commercial',
+ gov: 'Military / Government',
+ mil: 'Military / Government',
+}