Skip to content

Commit 88bb768

Browse files
committed
Bring back the dashboard chart animation at half the duration
Keep the individual graph pages instant, but restore the series animation on the top page, sped up from 400ms to 200ms.
1 parent 8d67011 commit 88bb768

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎source/_dashboard.html.haml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
Highcharts.setOptions({ lang: { thousandsSep: '' } });
5656
Highcharts.chart(graphElement.attr('id'), {
57-
chart: { zoomType: 'x', type: graphType, animation: false },
57+
chart: { zoomType: 'x', type: graphType },
5858
title: { text: 'Speed (higher is better)' },
5959
yAxis: { min: 0, maxPadding: 0, title: { text: 'times' } },
6060
xAxis: { categories: categories, labels: benchmarkLinkLabels },
@@ -66,7 +66,7 @@
6666
}
6767
},
6868
series: series,
69-
plotOptions: { series: { animation: false } }
69+
plotOptions: { series: { animation: { duration: 200 } } }
7070
});
7171
}
7272

@@ -89,7 +89,7 @@
8989
var categories = dashboard[category]['benchmarks'];
9090

9191
Highcharts.chart(graphElement.attr('id'), {
92-
chart: { zoomType: 'x', type: graphType, animation: false },
92+
chart: { zoomType: 'x', type: graphType },
9393
title: { text: 'Memory (lower is better)' },
9494
yAxis: {
9595
min: 0,
@@ -115,7 +115,7 @@
115115
}
116116
},
117117
series: series,
118-
plotOptions: { series: { animation: false } }
118+
plotOptions: { series: { animation: { duration: 200 } } }
119119
});
120120
}
121121

0 commit comments

Comments
 (0)