Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
a4f04494
Commit
a4f04494
authored
Oct 13, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
different palette for growht_rate
parent
f3b623a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
sigmaUtils.js
tinawebJS/sigmaUtils.js
+19
-1
No files found.
tinawebJS/sigmaUtils.js
View file @
a4f04494
...
...
@@ -369,7 +369,7 @@ function colorsRelByBins(daclass) {
// spare color 13 "#64e0f2",
var
tickThresholds
=
[
-
1000000
,
-
75
,
-
50
,
-
25
,
-
1
0
,
10
,
25
,
50
,
75
,
100
,
125
,
150
,
1000000
]
var
tickThresholds
=
[
-
1000000
,
-
75
,
-
50
,
-
25
,
-
1
5
,
15
,
25
,
50
,
75
,
100
,
125
,
150
,
1000000
]
// £TODO put colors and thresholds as params or calculate thresholds like eg d3.histogram
if
(
daclass
==
'age'
)
{
...
...
@@ -377,6 +377,24 @@ function colorsRelByBins(daclass) {
// and add a grey color for the first timeperiod
binColors
.
unshift
(
"#F9F7ED"
)
}
else
if
(
daclass
==
'growth_rate'
)
{
binColors
[
4
]
=
""
binColors
=
[
"#005197"
,
//blue binMin -∞
"#3c76fb"
,
// binMin -75
"#5c8af2"
,
// binMin -50
"#64c5f2"
,
// binMin -25
"#F9F7ED"
,
//epsilon binMin -15
"#bae64f"
,
// binMin 15
"#f9f008"
,
// binMin 25
"#fab207"
,
// binMin 50
"#fa9607"
,
// binMin 75
"#fa6e07"
,
// binMin 100
"#fa4607"
,
// red binMin 125
"#991B1E"
// binMin 150
];
}
// get the nodes
var
v_nodes
=
getVisibleNodes
();
...
...
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