@oliasoft-open-source/charts-library 2.4.4 → 2.4.5

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.4.4",
3
+ "version": "2.4.5",
4
4
  "description": "React Chart Library (based on Chart.js and react-chart-js-2)",
5
5
  "main": "index.js",
6
6
  "files": [
package/release-notes.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Charts Library Release Notes
2
2
 
3
+ ## 2.4.5
4
+
5
+ - Fix zooming issue from OW-9960
6
+
3
7
  ## 2.4.4
4
8
 
5
9
  - Updated GUI Library version
@@ -331,8 +331,8 @@ const LineChart = (props) => {
331
331
 
332
332
  return {
333
333
  ...axis,
334
- min: axis.min ?? getAxisValue(min),
335
- max: axis.max ?? getAxisValue(max),
334
+ min: axis.min ?? getAxisValue(min, true),
335
+ max: axis.max ?? getAxisValue(max, true),
336
336
  };
337
337
  });
338
338
  };
@@ -38,7 +38,7 @@ export const getPlugins = (graph, legend, state = null) => {
38
38
  return plugins;
39
39
  };
40
40
 
41
- export const getAxisValue = (value) => {
41
+ export const getAxisValue = (value, setValue = false) => {
42
42
  if (value !== undefined) {
43
43
  if (value === '-') {
44
44
  return {
@@ -51,6 +51,7 @@ export const getAxisValue = (value) => {
51
51
  return {
52
52
  inputValue: value.toString(),
53
53
  displayValue: value,
54
+ value: setValue ? undefined : value,
54
55
  valid: true,
55
56
  };
56
57
  }