@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.
package/lib/components/Axis.js
CHANGED
|
@@ -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: "
|
|
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
|
|
595
|
+
width: "100%"
|
|
596
|
+
// height="100%"
|
|
597
|
+
,
|
|
597
598
|
ref: seriesEl,
|
|
598
599
|
style: {
|
|
599
600
|
overflow: "visible",
|
package/package.json
CHANGED
package/src/components/Axis.tsx
CHANGED