]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3113 Display only percent metric for color metric
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 19 Dec 2013 07:27:26 +0000 (08:27 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 19 Dec 2013 07:27:26 +0000 (08:27 +0100)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/measures/MeasureFilterAsCloudWidget.java

index 79b4e31b5aa60eabf7eab13dcd0a36a8d6ea80fe..bd54931fdf57adbf87f6a1185df662f136dc0ce1 100644 (file)
@@ -32,7 +32,7 @@ import static org.sonar.api.web.WidgetScope.GLOBAL;
   @WidgetProperty(key = "chartTitle", type = WidgetPropertyType.STRING),
   @WidgetProperty(key = "chartHeight", type = WidgetPropertyType.INTEGER, defaultValue = "300"),
   @WidgetProperty(key = "filter", type = WidgetPropertyType.FILTER, optional = false),
-  @WidgetProperty(key = "colorMetric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.TECHNICAL_DEBT_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}),
+  @WidgetProperty(key = "colorMetric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.TECHNICAL_DEBT_KEY, options = "type:PERCENT"),
   @WidgetProperty(key = "sizeMetric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.COMPLEXITY_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}),
   @WidgetProperty(key = "maxItems", type = WidgetPropertyType.INTEGER, defaultValue = "50"),
   @WidgetProperty(key = "reverseColor", type = WidgetPropertyType.BOOLEAN, defaultValue = "false")