[O] Limit minimum zoom

This commit is contained in:
Hykilpikonna
2019-11-09 19:29:45 -05:00
parent 6dc2a21e8f
commit 35ef2144b7
@@ -32,11 +32,12 @@ export default class OverallLine extends Vue
dataZoom: dataZoom:
[ [
{ {
type: 'slider',
startValue: Math.max(moment().subtract(30, 'days').toDate().getTime(), startValue: Math.max(moment().subtract(30, 'days').toDate().getTime(),
CourseUtils.getTermBeginDate().getTime()) CourseUtils.getTermBeginDate().getTime()),
},
{ // Minimum zoom: 1 week
type: 'inside' minValueSpan: 7 * 24 * 60 * 60 * 1000
} }
], ],