Skip to content

Commit

Permalink
Replaced options.time with timeOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
nagix committed Jul 28, 2017
1 parent 7cf6f9c commit 11281b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scales/scale.time.js
Expand Up @@ -420,8 +420,8 @@ module.exports = function(Chart) {
var chart = me.chart;
var timeOpts = me.options.time;
var datasets = chart.data.datasets || [];
var min = parse(options.time.min, me) || MAX_INTEGER;
var max = parse(options.time.max, me) || MIN_INTEGER;
var min = parse(timeOpts.min, me) || MAX_INTEGER;
var max = parse(timeOpts.max, me) || MIN_INTEGER;
var timestamps = [];
var labels = [];
var minInterval = MAX_INTEGER;
Expand Down Expand Up @@ -484,7 +484,7 @@ module.exports = function(Chart) {
me._horizontal = me.isHorizontal();
me._labels = labels.sort(sorter); // Sort labels **after** data have been converted
me._table = [];
me._minInterval = minInterval;
me._minInterval = minInterval;
},

buildTicks: function() {
Expand Down

0 comments on commit 11281b7

Please sign in to comment.