Skip to content

Commit

Permalink
Highstock: Fixed #4147, first column not initially shown in month view.
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed Aug 4, 2015
1 parent b144ada commit 26fcdbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/highstock.src.js
Expand Up @@ -22421,7 +22421,7 @@ RangeSelector.prototype = {
if (fixedTimes[type]) {
rangeOptions._range = fixedTimes[type] * count;
} else if (type === 'month' || type === 'year') {
rangeOptions._range = { month: 30, year: 365 }[type] * 24 * 36e5 * count;
rangeOptions._range = { month: 31, year: 365 }[type] * 24 * 36e5 * count; // 31 for month, as per #4147
}
},

Expand Down
2 changes: 1 addition & 1 deletion js/parts/RangeSelector.js
Expand Up @@ -364,7 +364,7 @@ RangeSelector.prototype = {
if (fixedTimes[type]) {
rangeOptions._range = fixedTimes[type] * count;
} else if (type === 'month' || type === 'year') {
rangeOptions._range = { month: 30, year: 365 }[type] * 24 * 36e5 * count;
rangeOptions._range = { month: 31, year: 365 }[type] * 24 * 36e5 * count; // 31 for month, as per #4147
}
},

Expand Down

0 comments on commit 26fcdbe

Please sign in to comment.