@oliasoft-open-source/charts-library 2.5.22 → 2.5.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "2.5.22",
3
+ "version": "2.5.23",
4
4
  "description": "React Chart Library (based on Chart.js and react-chart-js-2)",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/release-notes.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Charts Library Release Notes
2
2
 
3
+ ## 2.5.23
4
+
5
+ - Patch minor regression in axis limits introduced in 2.5.22
6
+
3
7
  ## 2.5.22
4
8
 
5
9
  - Improve UX and input validation for axes range inputs ([OW-10305](https://oliasoft.atlassian.net/browse/OW-10305))
@@ -62,8 +62,8 @@ const getLineChartAxis = (options, axisType, state, currentScales, i = 0) => {
62
62
  reverse: axisType === AxisType.Y ? additionalAxesOptions.reverse : false,
63
63
  suggestedMax: additionalAxesOptions.suggestedMax,
64
64
  suggestedMin: additionalAxesOptions.suggestedMin,
65
- min: Number(stateAxis.min) ?? additionalAxesOptions?.range?.[axisType]?.min,
66
- max: Number(stateAxis.max) ?? additionalAxesOptions?.range?.[axisType]?.max,
65
+ min: stateAxis.min ?? additionalAxesOptions?.range?.[axisType]?.min,
66
+ max: stateAxis.max ?? additionalAxesOptions?.range?.[axisType]?.max,
67
67
  title: {
68
68
  display: axisData.label?.length,
69
69
  text: axisData.label,