@easyv/charts 1.5.26 → 1.5.27

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.
@@ -451,9 +451,10 @@ var Chart = /*#__PURE__*/(0, _react.memo)(function (_ref) {
451
451
 
452
452
  if (target && target.data[0]) {
453
453
  dataUnit = target.data[0].data.__unit__;
454
- }
454
+ } //如果纵坐标没有对应的值,则不显示
455
+
455
456
 
456
- return /*#__PURE__*/_react["default"].createElement(_.Axis, (0, _extends2["default"])({
457
+ return axisType != "x" && !target ? null : /*#__PURE__*/_react["default"].createElement(_.Axis, (0, _extends2["default"])({
457
458
  ref: function ref(d) {
458
459
  axisElList.current[index] = d;
459
460
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.5.26",
3
+ "version": "1.5.27",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -386,7 +386,8 @@ const Chart = memo(
386
386
  if(target && target.data[0]){
387
387
  dataUnit = target.data[0].data.__unit__;
388
388
  }
389
- return (
389
+ //如果纵坐标没有对应的值,则不显示
390
+ return axisType!="x" && !target?null:(
390
391
  <Axis
391
392
  ref={(d) => {
392
393
  axisElList.current[index] = d;