]> source.dussan.org Git - sonarqube.git/commitdiff
fix SONAR-6708 TreeMap Widget: colors of squares are not matching SQALE rating while...
authorStas Vilchik <vilchiks@gmail.com>
Thu, 10 Sep 2015 15:53:17 +0000 (17:53 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 10 Sep 2015 15:53:17 +0000 (17:53 +0200)
server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/treemap.html.erb

index f6a1fbc2b6b28ead43fe7954ab5b35b4421e8f11..39ba4bd430237592b064bc857ede8eee3f021741 100644 (file)
@@ -54,8 +54,8 @@
             longName: '<%= escape_javascript row.resource.long_name -%>',
             qualifier: '<%= escape_javascript row.resource.qualifier -%>',
             measures: {
-              <%= colorMetric.name -%>: { val: <%= color ? color.value : "null" -%>, fval: '<%= color ? color.formatted_value : "-" -%>' },
-              <%= sizeMetric.name -%>: { val: <%= size ? size.value : "null" -%>, fval: '<%= size ? size.formatted_value : "-" -%>' }
+              <%= colorMetric.name -%>: { val: <%= color ? color.value : "null" -%>, fval: '<%= color ? color.formatted_value : "-" -%>', data: '<%= color ? color.formatted_value : "-" -%>' },
+              <%= sizeMetric.name -%>: { val: <%= size ? size.value : "null" -%>, fval: '<%= size ? size.formatted_value : "-" -%>', data: '<%= size ? size.formatted_value : "-" -%>' }
             }
           },
         <% end %>