Skip to content

Commit

Permalink
Merge branch 'border-time-axis-ticks' into time-axis-ticks-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew.hurskiy committed May 30, 2017
2 parents 64dc3cb + abe456f commit 7254e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/helpers.time.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = function(Chart) {
var stepSize = options.stepSize;
var startTick = options.min !== undefined ? options.min : niceRange.min;
var majorUnit = options.majorUnit;
var majorUnitStart = majorUnit ? majorUnitStart = moment(startTick).add(1, majorUnit).startOf(majorUnit) : startTick;
var majorUnitStart = majorUnit ? moment(startTick).add(1, majorUnit).startOf(majorUnit) : startTick;
var startRange = majorUnitStart.valueOf() - startTick;
var stepValue = interval[options.unit].size * stepSize;
var startFraction = startRange % stepValue;
Expand Down

0 comments on commit 7254e90

Please sign in to comment.