@easyv/charts 1.10.1 → 1.10.3

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.
@@ -262,7 +262,7 @@ var Label = function Label(_ref5) {
262
262
  //x轴显示
263
263
  return /*#__PURE__*/_react["default"].createElement("foreignObject", {
264
264
  width: "100%",
265
- height: "100%"
265
+ height: "1px" //设置一个高度,让foreignObject正常显示内部内容,又不至于因为太高发生遮挡
266
266
  // x={x}
267
267
  // y={y}
268
268
  ,
@@ -592,8 +592,9 @@ var Chart = /*#__PURE__*/(0, _react.memo)(function (_ref) {
592
592
  transform: isVertical ? "translateX(".concat(-marginRight, "px)") : "translateY(".concat(-marginTop, "px)")
593
593
  }
594
594
  }, /*#__PURE__*/_react["default"].createElement("svg", {
595
- width: "100%",
596
- height: "100%",
595
+ width: "100%"
596
+ // height="100%"
597
+ ,
597
598
  ref: seriesEl,
598
599
  style: {
599
600
  overflow: "visible",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.10.1",
3
+ "version": "1.10.3",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -325,7 +325,7 @@ const Label: (
325
325
  return (
326
326
  <foreignObject
327
327
  width="100%"
328
- height="100%"
328
+ height="1px" //设置一个高度,让foreignObject正常显示内部内容,又不至于因为太高发生遮挡
329
329
  // x={x}
330
330
  // y={y}
331
331
  style={{ overflow: "visible" }}
@@ -592,7 +592,7 @@ const Chart = memo(
592
592
  >
593
593
  <svg
594
594
  width="100%"
595
- height="100%"
595
+ // height="100%"
596
596
  ref={seriesEl}
597
597
  style={{
598
598
  overflow: "visible",