@easyv/charts 1.3.36 → 1.3.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -110,7 +110,7 @@ var _default = function _default(_ref) {
110
110
  var range = direction === 'horizontal' ? [start, end] : direction === 'vertical' ? [end, start] : [0, 0];
111
111
  var newDomain = domain;
112
112
 
113
- if (mode == "count" && type !== 'ordinal' && !isNaN(domain[1])) {
113
+ if (type !== 'ordinal' && !isNaN(domain[1])) {
114
114
  newDomain = getNewDomain(domain, mode, step);
115
115
  }
116
116
 
@@ -128,7 +128,7 @@ var _default = function _default(_ref) {
128
128
  if (auto === false) {
129
129
  switch (mode) {
130
130
  case 'count':
131
- _ticks = (0, _utils2.getYTicks)(domain[1], domain[0], +tickCount);
131
+ _ticks = (0, _utils2.getYTicks)(newDomain[1], newDomain[0], +tickCount);
132
132
  break;
133
133
 
134
134
  case 'step':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.3.36",
3
+ "version": "1.3.37",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -71,14 +71,13 @@ export default ({ axes, context: { width, height } }) => {
71
71
  carousel,
72
72
  config,
73
73
  } = item;
74
-
74
+
75
75
  const direction =
76
76
  orientation === 'top' || orientation === 'bottom'
77
77
  ? 'horizontal'
78
78
  : orientation === 'left' || orientation === 'right'
79
79
  ? 'vertical'
80
80
  : '';
81
-
82
81
  const length =
83
82
  direction === 'horizontal'
84
83
  ? width
@@ -97,7 +96,7 @@ export default ({ axes, context: { width, height } }) => {
97
96
  ? [end, start]
98
97
  : [0, 0];
99
98
  let newDomain = domain;
100
- if(mode == "count" && type !== 'ordinal' && !isNaN(domain[1])){
99
+ if(type !== 'ordinal' && !isNaN(domain[1])){
101
100
  newDomain = getNewDomain(domain, mode, step);
102
101
  }
103
102
 
@@ -119,8 +118,8 @@ export default ({ axes, context: { width, height } }) => {
119
118
  switch (mode) {
120
119
  case 'count':
121
120
  _ticks = getYTicks(
122
- domain[1],
123
- domain[0],
121
+ newDomain[1],
122
+ newDomain[0],
124
123
  +tickCount
125
124
  );
126
125
  break;