aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/graphics/barchart.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-03-10 15:46:31 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-03-16 12:38:38 +0100
commit45f9acebd289a81f5e926bd5ca505d68f2a4abd7 (patch)
tree81a332393171759cf10baa1c526115ea74c5d388 /server/sonar-web/src/main/js/graphics/barchart.js
parent195c9fc6c44b87d20e084df1d6647e30598298ca (diff)
downloadsonarqube-45f9acebd289a81f5e926bd5ca505d68f2a4abd7.tar.gz
sonarqube-45f9acebd289a81f5e926bd5ca505d68f2a4abd7.zip
SONAR-6285 add a home page for global issues
Diffstat (limited to 'server/sonar-web/src/main/js/graphics/barchart.js')
-rw-r--r--server/sonar-web/src/main/js/graphics/barchart.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/graphics/barchart.js b/server/sonar-web/src/main/js/graphics/barchart.js
index e8bd3b7e353..c107a68661b 100644
--- a/server/sonar-web/src/main/js/graphics/barchart.js
+++ b/server/sonar-web/src/main/js/graphics/barchart.js
@@ -48,7 +48,7 @@
$(this).each(function () {
var options = _.defaults($(this).data(), defaults());
_.extend(options, {
- width: $(this).width(),
+ width: options.width || $(this).width(),
endDate: moment(options.endDate)
});
@@ -116,7 +116,7 @@
isSameDay = ending.diff(beginning, 'days') <= 1;
return d.count + '<br>' + beginning.format('LL') + (isSameDay ? '' : (' – ' + ending.format('LL')));
})
- .attr('data-placement', 'right')
+ .attr('data-placement', 'bottom')
.attr('data-toggle', 'tooltip');
var maxValue = d3.max(data, function (d) {