From db9100ac264f21f2b53e2ff3d683ceaccbda406d Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 13 Jan 2014 12:25:35 +0600 Subject: [PATCH] Histogram: support relativeScale --- sonar-server/src/main/webapp/javascripts/widgets/histogram.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/javascripts/widgets/histogram.js b/sonar-server/src/main/webapp/javascripts/widgets/histogram.js index fbb70064ccd..7dd5a85f659 100644 --- a/sonar-server/src/main/webapp/javascripts/widgets/histogram.js +++ b/sonar-server/src/main/webapp/javascripts/widgets/histogram.js @@ -184,7 +184,7 @@ window.SonarWidgets = window.SonarWidgets == null ? {} : window.SonarWidgets; }), metric = this.metrics()[this.mainMetric]; - if (this.options().displayWorstBestValues) { + if (!this.options().relativeScale) { if (metric.worstValue != null && metric.bestValue != null) { xDomain = d3.extent([metric.worstValue, metric.bestValue]); } else if (metric.bestValue != null) { -- 2.39.5