@easyv/charts 1.3.38 → 1.3.39
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.
- package/lib/hooks/useAxes.js +2 -2
- package/package.json +1 -1
package/lib/hooks/useAxes.js
CHANGED
|
@@ -116,7 +116,8 @@ var _default = function _default(_ref) {
|
|
|
116
116
|
|
|
117
117
|
var scaler = scales[type]().domain(newDomain).range(range);
|
|
118
118
|
scaler.type = type;
|
|
119
|
-
if (type !== 'ordinal') scaler.clamp(true);
|
|
119
|
+
if (type !== 'ordinal') scaler.clamp(true); //scaler.nice().clamp(true)
|
|
120
|
+
|
|
120
121
|
var allTicks = ticks ? ticks : scaler.ticks ? scaler.ticks(tickCount) : scaler.domain();
|
|
121
122
|
var _ticks = allTicks;
|
|
122
123
|
|
|
@@ -138,7 +139,6 @@ var _default = function _default(_ref) {
|
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
141
|
|
|
141
|
-
console.log(newDomain, _ticks, allTicks);
|
|
142
142
|
var lengthWithoutPaddingOuter = length - _paddingOuter;
|
|
143
143
|
|
|
144
144
|
if (type == 'linear' && config.on) {
|