@oliasoft-open-source/charts-library 2.3.1 → 2.3.2

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.3.1",
3
+ "version": "2.3.2",
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.3.2
4
+
5
+ - added default values for axis ticks (suggestedMin/Max) OW-4327
6
+
3
7
  ## 2.3.0
4
8
 
5
9
  - Text annotations in line chart
@@ -136,8 +136,10 @@ export const getDefaultProps = (props) => {
136
136
  truncateAxisNumbersToDigitsCallback:
137
137
  props.chart.options.additionalAxesOptions
138
138
  .truncateAxisNumbersToDigitsCallback,
139
- suggestedMin: props.chart.options.additionalAxesOptions.suggestedMin,
140
- suggestedMax: props.chart.options.additionalAxesOptions.suggestedMax,
139
+ suggestedMin:
140
+ props.chart.options.additionalAxesOptions.suggestedMin ?? -1,
141
+ suggestedMax:
142
+ props.chart.options.additionalAxesOptions.suggestedMax ?? 1,
141
143
  range: props.chart.options.additionalAxesOptions.range,
142
144
  },
143
145
  chartStyling: {