@oliasoft-open-source/charts-library 2.5.26 → 2.5.27

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.26",
3
+ "version": "2.5.27",
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.27
4
+
5
+ - Add guard to useEffect in line-chart
6
+
3
7
  ## 2.5.26
4
8
 
5
9
  - Add guard to getLineChartAxis method
@@ -131,7 +131,7 @@ const LineChart = (props) => {
131
131
 
132
132
  useEffect(() => {
133
133
  const { range } = props.chart.options.additionalAxesOptions;
134
- if (range) {
134
+ if (range?.x && range?.y) {
135
135
  const axes = Object.entries(range).map(([key, { min, max }]) => {
136
136
  return {
137
137
  id: key,