aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-03-10 13:20:44 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-03-10 13:20:52 +0100
commitc5640872ecbc0a47219583d6210cc905522dc165 (patch)
tree63393cf79cc69d98b0cc62bde31e7e88cc0ebca4 /server
parent50a7609493223a0916abb96b5b2257e150d53396 (diff)
downloadsonarqube-c5640872ecbc0a47219583d6210cc905522dc165.tar.gz
sonarqube-c5640872ecbc0a47219583d6210cc905522dc165.zip
SONAR-7405 fix treemap colors when displaying RATING measure
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/components/MeasureTreemap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/MeasureTreemap.js b/server/sonar-web/src/main/js/apps/component-measures/components/MeasureTreemap.js
index 5c2d4d8c329..9eea0cb09bc 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/components/MeasureTreemap.js
+++ b/server/sonar-web/src/main/js/apps/component-measures/components/MeasureTreemap.js
@@ -107,7 +107,7 @@ export default class MeasureTreemap extends React.Component {
}
getRatingColorScale () {
- return d3.scale.ordinal()
+ return d3.scale.linear()
.domain([1, 2, 3, 4, 5])
.range(['#00aa00', '#80cc00', '#ffee00', '#f77700', '#ee0000']);
}