summaryrefslogtreecommitdiffstats
path: root/reporting/js
diff options
context:
space:
mode:
authormrichomme <morgan.richomme@orange.com>2018-04-16 18:28:13 +0200
committermrichomme <morgan.richomme@orange.com>2018-04-16 18:28:13 +0200
commitcad2ec55621e4620c2848788d05c4e3ef52f60e4 (patch)
tree89b97bf65d5225ace70a3fa4d52142fa05fefa12 /reporting/js
parentad79d2da24569eb7ffca174e236e3357ed467b12 (diff)
change gauge color
Change-Id: I2bbd2b1113d7fea8773e93c49260a9e5fda2c09c Signed-off-by: mrichomme <morgan.richomme@orange.com>
Diffstat (limited to 'reporting/js')
-rw-r--r--reporting/js/gauge.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/reporting/js/gauge.js b/reporting/js/gauge.js
index 4cad16c..a9842e5 100644
--- a/reporting/js/gauge.js
+++ b/reporting/js/gauge.js
@@ -28,7 +28,9 @@ var gauge = function(container) {
labelFormat : d3.format(',g'),
labelInset : 10,
- arcColorFn : d3.interpolateHsl(d3.rgb('#ff0000'), d3.rgb('#00ff00'))
+ arcColorFn : d3.scale.quantile()
+ .domain([0, , 0.6, 0.8, 1])
+ .range([d3.rgb('#ff0000'),d3.rgb('#ffcc00'),d3.rgb('#00ff00')])
};