diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2018-04-20 05:59:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-04-20 05:59:14 +0000 |
commit | 979f52bde489317e114f493d4b16838dfb28be1f (patch) | |
tree | ecd8d2cf894944a7421b1cc7142d8130ed0ef696 | |
parent | 08ad43c059092259ea2136310755fed50d9ba876 (diff) | |
parent | cad2ec55621e4620c2848788d05c4e3ef52f60e4 (diff) |
Merge "change gauge color"
-rw-r--r-- | reporting/js/gauge.js | 4 |
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')]) }; |