@lobehub/charts 1.7.0 → 1.7.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.
@@ -66,6 +66,7 @@ var BarList = /*#__PURE__*/forwardRef(function (props, ref) {
66
66
  flex: 1,
67
67
  gap: 8,
68
68
  style: {
69
+ overflow: 'hidden',
69
70
  position: 'relative'
70
71
  },
71
72
  children: [(leftLabel || rightLabel) && /*#__PURE__*/_jsx(Flexbox, {
@@ -84,8 +85,7 @@ var BarList = /*#__PURE__*/forwardRef(function (props, ref) {
84
85
  onValueChange === null || onValueChange === void 0 || onValueChange(item);
85
86
  },
86
87
  style: {
87
- cursor: onValueChange ? 'pointer' : 'default',
88
- width: "".concat(widths[index], "%")
88
+ cursor: onValueChange ? 'pointer' : 'default'
89
89
  },
90
90
  width: '100%',
91
91
  children: [/*#__PURE__*/_jsx("div", {
@@ -102,6 +102,9 @@ var BarList = /*#__PURE__*/forwardRef(function (props, ref) {
102
102
  horizontal: true,
103
103
  paddingInline: 8,
104
104
  style: {
105
+ overflow: 'hidden',
106
+ position: 'relative',
107
+ width: '100%',
105
108
  zIndex: 1
106
109
  },
107
110
  children: [item.icon, item.href ? /*#__PURE__*/_jsx(A, {
@@ -148,7 +148,7 @@ var DonutChart = /*#__PURE__*/forwardRef(function (props, ref) {
148
148
  textAnchor: "middle",
149
149
  x: "50%",
150
150
  y: "50%",
151
- children: donutLabel || typeof activeIndex === 'number' ? valueFormatter(data === null || data === void 0 || (_data = data[activeIndex]) === null || _data === void 0 ? void 0 : _data[category]) : parsedLabelInput
151
+ children: donutLabel || (typeof activeIndex === 'number' ? valueFormatter(data === null || data === void 0 || (_data = data[activeIndex]) === null || _data === void 0 ? void 0 : _data[category]) : parsedLabelInput)
152
152
  }) : null, /*#__PURE__*/_jsx(Pie, {
153
153
  activeIndex: activeIndex,
154
154
  animationDuration: animationDuration,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/charts",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "React modern charts components built on recharts",
5
5
  "keywords": [
6
6
  "lobehub",