Skip to content

Commit f3fb596

Browse files
authored
Pick a tighter y-axis max on the dashboard charts (#17)
Highcharts pads the data max by 5% before rounding up to a tick, so a 147x result pushed the axis to 175 instead of 150. Drop the padding so the axis ends at the first tick above the actual data max.
1 parent 8219b70 commit f3fb596

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎source/_dashboard.html.haml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
Highcharts.chart(graphElement.attr('id'), {
5757
chart: { zoomType: 'x', type: graphType },
5858
title: { text: 'Speed (higher is better)' },
59-
yAxis: { min: 0, title: { text: 'times' } },
59+
yAxis: { min: 0, maxPadding: 0, title: { text: 'times' } },
6060
xAxis: { categories: categories, labels: benchmarkLinkLabels },
6161
tooltip: {
6262
formatter: function() {
@@ -93,6 +93,7 @@
9393
title: { text: 'Memory (lower is better)' },
9494
yAxis: {
9595
min: 0,
96+
maxPadding: 0,
9697
title: { text: 'relative to no-JIT' },
9798
plotLines: [{
9899
value: 1.0,

0 commit comments

Comments
 (0)