summaryrefslogtreecommitdiff
path: root/result/krafcik.js
diff options
context:
space:
mode:
Diffstat (limited to 'result/krafcik.js')
-rw-r--r--result/krafcik.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/result/krafcik.js b/result/krafcik.js
index 77fbda1..b8e88b0 100644
--- a/result/krafcik.js
+++ b/result/krafcik.js
@@ -153,7 +153,7 @@ $(document).ready(function() {
if (tooltip.body) {
var positionY = chart.canvas.offsetTop;
var positionX = chart.canvas.offsetLeft;
- container.html(contentFunction(tooltip, data)).show();
+ container.html(contentFunction(tooltip, data));
container.css({
'top': Math.min(
positionY + tooltip.caretY,
@@ -173,6 +173,9 @@ $(document).ready(function() {
var datasets = data.datasets;
$.each(tooltip.dataPoints, function(d, dataPoint) {
var beer = datasets[dataPoint.datasetIndex].data[dataPoint.index].ref;
+ if (d > 0) {
+ content.append('<hr />');
+ }
content.append(
$('<div>').append($('<strong>').text(beer.name)),
$('<div>').append($('<span>').text(breweries[beer.brewery].name)),