diff options
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/measures/MeasureFilterAsHistogramWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/measures/MeasureFilterAsHistogramWidget.java index 42ecce2a60e..e11437654a2 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/measures/MeasureFilterAsHistogramWidget.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/measures/MeasureFilterAsHistogramWidget.java @@ -34,7 +34,7 @@ import static org.sonar.api.web.WidgetScope.GLOBAL; @WidgetProperty(key = "metric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.TECHNICAL_DEBT_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}), @WidgetProperty(key = "maxItems", type = WidgetPropertyType.INTEGER, defaultValue = "40"), @WidgetProperty(key = "reverseOrder", type = WidgetPropertyType.BOOLEAN, defaultValue = "false"), - @WidgetProperty(key = "displayWorstBestValues", type = WidgetPropertyType.BOOLEAN, defaultValue = "false") + @WidgetProperty(key = "relativeScale", type = WidgetPropertyType.BOOLEAN, defaultValue = "false") }) public class MeasureFilterAsHistogramWidget extends CoreWidget { diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties index 1a62fce0184..7aa1e6d3349 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -1130,8 +1130,8 @@ widget.measure_filter_histogram.property.maxItems.name=Max Components widget.measure_filter_histogram.property.maxItems.desc=Maximum number of components to display widget.measure_filter_histogram.property.reverseOrder.name=Descending widget.measure_filter_histogram.property.reverseOrder.desc=Reverse sort order of filter -widget.measure_filter_histogram.property.displayWorstBestValues.name=Absolute Scale -widget.measure_filter_histogram.property.displayWorstBestValues.desc=An "Absolute" scale uses the metric's full range of values on the y-axis. For instance, for code coverage, it spans from 0% to 100%. A "Relative" scale limits the y-axis to only those values represented among your projects. Like grading on a curve, the effect is to give your worst project a height of 0 on the y-axis and your best project the full height of the graph. This is useful when you want to compare your projects only to each other. Note that changes in either the best or worst projects will affect the graph scale. +widget.measure_filter_histogram.property.relativeScale.name=Relative Scale +widget.measure_filter_histogram.property.relativeScale.desc=An "Absolute" scale uses the metric's full range of values on the y-axis. For instance, for code coverage, it spans from 0% to 100%. A "Relative" scale limits the y-axis to only those values represented among your projects. Like grading on a curve, the effect is to give your worst project a height of 0 on the y-axis and your best project the full height of the graph. This is useful when you want to compare your projects only to each other. Note that changes in either the best or worst projects will affect the graph scale. widget.measure_filter_histogram.max_items_reached=Only the first {0} components are displayed widget.measure_filter_bubble_chart.name=Measure Filter as Bubble Chart diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/measures/measure_filter_histogram.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/measures/measure_filter_histogram.html.erb index 6df5c73e4ac..000ada35ae2 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/measures/measure_filter_histogram.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/measures/measure_filter_histogram.html.erb @@ -4,7 +4,7 @@ filterId = widget_properties["filter"].to_i maxItems = widget_properties["maxItems"].to_i reverseOrder = widget_properties["reverseOrder"] - displayWorstBestValues = widget_properties["displayWorstBestValues"] + relativeScale = widget_properties["relativeScale"] filter = MeasureFilter.find_by_id(filterId.to_i) @widget_title = link_to h(filter.name), {:controller => 'measures', :action => 'filter', :id => filter.id, :display => 'list'} @@ -43,7 +43,7 @@ .metricsPriority(metrics) .options({ baseUrl: baseUrl + '/dashboard/index/', - displayWorstBestValues: <%= displayWorstBestValues -%>, + relativeScale: <%= relativeScale -%>, maxItemsReachedMessage: '<%= message("widget.measure_filter_histogram.max_items_reached", :params => [maxItems]) -%>', noData: '<%= message('no_data') -%>', noMainMetric: '<%= message('widget.measure_filter.no_main_metric') -%>' |