Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit f37e4ff

Browse files
committed
fix zoom out problems with <7 days
1 parent fce6ace commit f37e4ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

www/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ function drawLoginsChart(getEl) {
5555
scales: {
5656
xAxes: [{
5757
type: 'time',
58-
time: {
58+
time: { // do not set round: 'day', because it breaks zooming out from 7 or fewer days
5959
isoWeekday: true,
60-
round: 'day',
6160
minUnit: 'day',
6261
tooltipFormat: 'l'
6362
}

0 commit comments

Comments
 (0)