Skip to content

Commit

Permalink
update dist and lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaming743 committed Sep 3, 2019
1 parent 604f864 commit 793101f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dist/charts.map.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/charts.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/core/axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ function getSeriesMinMaxValue(series) {
if (!series) return;
var minValue = Math.min.apply(Math, (0, _toConsumableArray2["default"])(series.map(function (_ref9) {
var data = _ref9.data;
return min.apply(void 0, (0, _toConsumableArray2["default"])((0, _util.filterNonNumber)(data)));
return Math.min.apply(Math, (0, _toConsumableArray2["default"])((0, _util.filterNonNumber)(data)));
})));
var maxValue = Math.max.apply(Math, (0, _toConsumableArray2["default"])(series.map(function (_ref10) {
var data = _ref10.data;
return max.apply(void 0, (0, _toConsumableArray2["default"])((0, _util.filterNonNumber)(data)));
return Math.max.apply(Math, (0, _toConsumableArray2["default"])((0, _util.filterNonNumber)(data)));
})));
return [minValue, maxValue];
}
Expand Down
4 changes: 2 additions & 2 deletions src/core/axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ function getSeriesMinMaxValue (series) {

const minValue = Math.min(
...series
.map(({ data }) => min(...filterNonNumber(data)))
.map(({ data }) => Math.min(...filterNonNumber(data)))
)

const maxValue = Math.max(
...series
.map(({ data }) => max(...filterNonNumber(data)))
.map(({ data }) => Math.max(...filterNonNumber(data)))
)

return [minValue, maxValue]
Expand Down

0 comments on commit 793101f

Please sign in to comment.