Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
giscience
disaster-tools
covid-19-research-map
Commits
4bb5e7ac
Commit
4bb5e7ac
authored
Apr 24, 2020
by
Sven Lautenbach
Browse files
CHanged legend order and adjusted category labels. Fixes issue
#47
.
parent
47734581
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
nginx/covid_website/assets/data/covid-19-trials.geojson
View file @
4bb5e7ac
This diff is collapsed.
Click to expand it.
nginx/covid_website/assets/js/cumulativePlot.js
View file @
4bb5e7ac
...
...
@@ -58,28 +58,28 @@ function makeCumPlot(geojsonData, cumPlotDiv) {
var
classification
=
studyClass
[
i
];
switch
(
classification
)
{
case
"
d
rugs
"
:
case
"
D
rugs
"
:
FreqObjDrugs
[
num
]
=
FreqObjDrugs
[
num
]
>
0
?
FreqObjDrugs
[
num
]
+
1
:
1
;
break
;
case
"
d
iagnosis
"
:
case
"
D
iagnosis
"
:
FreqObjDiagnosis
[
num
]
=
FreqObjDiagnosis
[
num
]
>
0
?
FreqObjDiagnosis
[
num
]
+
1
:
1
;
break
;
case
"
v
accine
"
:
case
"
V
accine
s
"
:
FreqObjVaccines
[
num
]
=
FreqObjVaccines
[
num
]
>
0
?
FreqObjVaccines
[
num
]
+
1
:
1
;
break
;
case
"
A
TMP
"
:
case
"
A
dvanced theraphy medicinical products
"
:
FreqObjATMP
[
num
]
=
FreqObjATMP
[
num
]
>
0
?
FreqObjATMP
[
num
]
+
1
:
1
;
break
;
case
"
i
mpact on
the
helpers
"
:
case
"
I
mpact on helpers
"
:
FreqObjImpHelpers
[
num
]
=
FreqObjImpHelpers
[
num
]
>
0
?
FreqObjImpHelpers
[
num
]
+
1
:
1
;
break
;
case
"
management
"
:
case
"
Therapeutic strategies
"
:
FreqObjTheraStrat
[
num
]
=
FreqObjTheraStrat
[
num
]
>
0
?
FreqObjTheraStrat
[
num
]
+
1
:
1
;
break
;
case
"
t
raditional
c
hinese medicine
"
:
case
"
T
raditional
C
hinese medicine
"
:
FreqObjTradChin
[
num
]
=
FreqObjTradChin
[
num
]
>
0
?
FreqObjTradChin
[
num
]
+
1
:
1
;
break
;
case
"
understanding
"
:
case
"
Disease
understanding
"
:
FreqObjUnderstanding
[
num
]
=
FreqObjUnderstanding
[
num
]
>
0
?
FreqObjUnderstanding
[
num
]
+
1
:
1
;
break
;
...
...
nginx/covid_website/assets/js/trials-map.js
View file @
4bb5e7ac
...
...
@@ -84,15 +84,15 @@ class TrialsMap {
*/
setTaxonomiesColors
()
{
this
.
studyCategoryColors
=
{
drugs
:
'
#7FC97F
'
,
vaccine
:
'
#BEAED4
'
,
ATMP
:
'
#FDC086
'
,
'
impact on the helpers
'
:
'
#FFFF99
'
,
management
:
'
#386CB0
'
,
'
traditional chinese medi
cine
'
:
'
#
F0027F
'
,
diagnosis
:
'
#1B9E77
'
,
understanding
:
'
#BF5B17
'
,
o
ther
:
'
#666666
'
Diagnosis
:
'
#1B9E77
'
,
'
Disease understanding
'
:
'
#BF5B17
'
,
'
Therapeutic strategies
'
:
'
#386CB0
'
,
Drugs
:
'
#7FC97F
'
,
'
Advanced theraphy medicinical products
'
:
'
#FDC086
'
,
Vac
cine
s
:
'
#
BEAED4
'
,
'
Traditional Chinese medicine
'
:
'
#F0027F
'
,
'
Impact on helpers
'
:
'
#FFFF99
'
,
O
ther
:
'
#666666
'
}
this
.
studyTypeColors
=
{
'
Observational study
'
:
'
orange
'
,
...
...
python/dat/covid-19-trials.geojson
View file @
4bb5e7ac
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment