]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5702 Treemap does not correctly display colors for SQALE Rating
authorStas Vilchik <vilchiks@gmail.com>
Wed, 8 Oct 2014 07:21:49 +0000 (09:21 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 8 Oct 2014 07:21:56 +0000 (09:21 +0200)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/treemap.html.erb

index 76c152ec75a01237fc45d145af2ccefceb518f9c..4a5f9612a8805263287063d8d7221f6273606eec 100644 (file)
@@ -33,7 +33,8 @@
       metrics: {
         <%= colorMetric.name -%>: {
           name: '<%= colorMetric.short_name -%>',
-          direction: <%= colorMetric.direction -%>
+          direction: <%= colorMetric.direction -%>,
+          type: '<%= colorMetric.val_type -%>'
         },
         <%= sizeMetric.name -%>: {
           name: '<%= sizeMetric.short_name -%>'