diff options
Diffstat (limited to 'result/krafcik.js')
-rw-r--r-- | result/krafcik.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/result/krafcik.js b/result/krafcik.js index ba8ccf9..77fbda1 100644 --- a/result/krafcik.js +++ b/result/krafcik.js @@ -4,7 +4,6 @@ $(document).ready(function() { if (!tab) { tab = location.hash.replace('#', '') || 'styles'; } - console.log(tab, push); $(`a#${tab}-tab`).tab('show'); if (push) { history.pushState({}, '', '#' + tab); @@ -149,8 +148,8 @@ $(document).ready(function() { var container = $('#chart-tooltip'); if (!container.length) { container = $('<div id="chart-tooltip"></div>'); - $('body').append(container); } + $(chart.canvas).parent().append(container); if (tooltip.body) { var positionY = chart.canvas.offsetTop; var positionX = chart.canvas.offsetLeft; @@ -213,6 +212,7 @@ $(document).ready(function() { }] }, options: { + maintainAspectRatio: false, legend: { display: false }, @@ -292,6 +292,7 @@ $(document).ready(function() { abvRatingsChart = new Chart.Scatter(ctx, { data: scatterChartData[0], options: { + maintainAspectRatio: false, scales: { xAxes: [abvAxis], yAxes: [ratingAxis] @@ -313,6 +314,7 @@ $(document).ready(function() { abvAverageChart = new Chart.Scatter(ctx, { data: scatterChartData[1], options: { + maintainAspectRatio: false, scales: { xAxis: [abvAxis], yAxes: [averageAxis] @@ -334,6 +336,7 @@ $(document).ready(function() { ratingsAverageChart = new Chart.Scatter(ctx, { data: scatterChartData[2], options: { + maintainAspectRatio: false, scales: { xAxes: [ratingAxis], yAxes: [averageAxis] |