@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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +8 -8
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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.
|
|
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.
|
|
13
|
-
"@trackunit/react-date-and-time-hooks": "1.4.
|
|
14
|
-
"@trackunit/ui-design-tokens": "1.4.
|
|
15
|
-
"@trackunit/shared-utils": "1.6.
|
|
16
|
-
"@trackunit/css-class-variance-utilities": "1.4.
|
|
17
|
-
"@trackunit/react-components": "1.5.
|
|
18
|
-
"@trackunit/react-test-setup": "1.1.
|
|
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",
|