@easyv/charts 1.3.29 → 1.3.30

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.
@@ -128,13 +128,11 @@ 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], // hasNullDomain?_ticks[_ticks.length - 1]:domain[1],
132
- // hasNullDomain?_ticks[0]:domain[0],
133
- +tickCount);
131
+ _ticks = (0, _utils2.getYTicks)(domain[1], domain[0], +tickCount);
134
132
  break;
135
133
 
136
134
  case 'step':
137
- _ticks = (0, _utils2.getYTicksByStep)(newDomain[1], _ticks[0], +step);
135
+ _ticks = (0, _utils2.getYTicksByStep)(newDomain[1], newDomain[0], +step);
138
136
  break;
139
137
  }
140
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.3.29",
3
+ "version": "1.3.30",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -100,9 +100,9 @@ export default ({ axes, context: { width, height } }) => {
100
100
  if(mode == "count" && type !== 'ordinal' && !isNaN(domain[1])){
101
101
  newDomain = getNewDomain(domain, mode, step);
102
102
  }
103
+
103
104
  const scaler = scales[type]().domain(newDomain).range(range);
104
105
  scaler.type = type;
105
-
106
106
  if (type !== 'ordinal') scaler.nice().clamp(true);
107
107
  const allTicks = ticks
108
108
  ? ticks
@@ -121,24 +121,20 @@ export default ({ axes, context: { width, height } }) => {
121
121
  _ticks = getYTicks(
122
122
  domain[1],
123
123
  domain[0],
124
- // hasNullDomain?_ticks[_ticks.length - 1]:domain[1],
125
- // hasNullDomain?_ticks[0]:domain[0],
126
124
  +tickCount
127
125
  );
128
126
  break;
129
127
  case 'step':
130
128
  _ticks = getYTicksByStep(
131
129
  newDomain[1],
132
- _ticks[0],
130
+ newDomain[0],
133
131
  +step
134
132
  );
135
133
  break;
136
134
  }
137
135
  }
138
136
  }
139
-
140
137
  const lengthWithoutPaddingOuter = length - _paddingOuter;
141
-
142
138
  if (type == 'linear' && config.on) {
143
139
  const zeroPosition = scaler(0);
144
140
  if (zeroPosition !== range[0] && !isNaN(zeroPosition)) {