@gravity-ui/charts 1.48.2 → 1.48.3

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.
@@ -161,7 +161,7 @@ function getDomainMaxAlignedToEndTick(args) {
161
161
  else {
162
162
  step = tickStep(dMin, dMax, 1);
163
163
  }
164
- dNewMax = tickValues[tickValues.length - 1].value + step;
164
+ dNewMax = Math.floor(dMax / step + 1) * step;
165
165
  }
166
166
  }
167
167
  return dNewMax;
@@ -161,7 +161,7 @@ function getDomainMaxAlignedToEndTick(args) {
161
161
  else {
162
162
  step = tickStep(dMin, dMax, 1);
163
163
  }
164
- dNewMax = tickValues[tickValues.length - 1].value + step;
164
+ dNewMax = Math.floor(dMax / step + 1) * step;
165
165
  }
166
166
  }
167
167
  return dNewMax;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/charts",
3
- "version": "1.48.2",
3
+ "version": "1.48.3",
4
4
  "description": "A flexible JavaScript library for data visualization and chart rendering using React",
5
5
  "license": "MIT",
6
6
  "main": "dist/cjs/index.js",