@trackunit/react-chart-components 1.4.52 → 1.4.56

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/index.cjs.js CHANGED
@@ -515,7 +515,7 @@ const BarChart = ({ series, loading, onClick, className, dataTestId, units, show
515
515
  overflow: "truncate",
516
516
  },
517
517
  data: seriesData[0]?.data
518
- ?.filter(({ value }) => value)
518
+ .filter(({ value }) => value)
519
519
  .map(data => (isDateData(data) ? data.date : data.key)),
520
520
  },
521
521
  ],
@@ -526,7 +526,7 @@ const BarChart = ({ series, loading, onClick, className, dataTestId, units, show
526
526
  id: "insideX",
527
527
  xAxisIndex: 0,
528
528
  startValue: 0,
529
- endValue: (seriesData[0]?.data?.length || 0) > 10 ? 10 : seriesData[0]?.data?.length || 0,
529
+ endValue: (seriesData[0]?.data.length || 0) > 10 ? 10 : seriesData[0]?.data.length || 0,
530
530
  showDetail: false,
531
531
  },
532
532
  ]
package/index.esm.js CHANGED
@@ -494,7 +494,7 @@ const BarChart = ({ series, loading, onClick, className, dataTestId, units, show
494
494
  overflow: "truncate",
495
495
  },
496
496
  data: seriesData[0]?.data
497
- ?.filter(({ value }) => value)
497
+ .filter(({ value }) => value)
498
498
  .map(data => (isDateData(data) ? data.date : data.key)),
499
499
  },
500
500
  ],
@@ -505,7 +505,7 @@ const BarChart = ({ series, loading, onClick, className, dataTestId, units, show
505
505
  id: "insideX",
506
506
  xAxisIndex: 0,
507
507
  startValue: 0,
508
- endValue: (seriesData[0]?.data?.length || 0) > 10 ? 10 : seriesData[0]?.data?.length || 0,
508
+ endValue: (seriesData[0]?.data.length || 0) > 10 ? 10 : seriesData[0]?.data.length || 0,
509
509
  showDetail: false,
510
510
  },
511
511
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-chart-components",
3
- "version": "1.4.52",
3
+ "version": "1.4.56",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -9,13 +9,13 @@
9
9
  "dependencies": {
10
10
  "echarts": "5.6.0",
11
11
  "react": "19.0.0",
12
- "@trackunit/date-and-time-utils": "1.4.31",
13
- "@trackunit/react-date-and-time-hooks": "1.4.39",
14
- "@trackunit/ui-design-tokens": "1.4.33",
15
- "@trackunit/shared-utils": "1.6.31",
16
- "@trackunit/css-class-variance-utilities": "1.4.31",
17
- "@trackunit/react-components": "1.5.48",
18
- "@trackunit/react-test-setup": "1.1.31"
12
+ "@trackunit/date-and-time-utils": "1.4.34",
13
+ "@trackunit/react-date-and-time-hooks": "1.4.43",
14
+ "@trackunit/ui-design-tokens": "1.4.36",
15
+ "@trackunit/shared-utils": "1.6.34",
16
+ "@trackunit/css-class-variance-utilities": "1.4.34",
17
+ "@trackunit/react-components": "1.5.52",
18
+ "@trackunit/react-test-setup": "1.1.34"
19
19
  },
20
20
  "module": "./index.esm.js",
21
21
  "main": "./index.cjs.js",