@easyv/charts 1.5.25 → 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.
@@ -243,6 +243,7 @@ var Label = function Label(_ref5) {
243
243
  style: _objectSpread(_objectSpread(_objectSpread({}, _style), (0, _utils.getFontStyle)(font)), {}, {
244
244
  /** Safari Bug **/
245
245
  position: "absolute",
246
+ cursor: "pointer",
246
247
  left: x + (isIOS ? iosX : 0),
247
248
  top: y + (isIOS ? iosY : 0)
248
249
  })
@@ -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
  },
@@ -124,6 +124,7 @@ var _default = /*#__PURE__*/(0, _react.memo)(function (_ref) {
124
124
  display: 'flex',
125
125
  opacity: selected === false ? opacity / 100 : 1,
126
126
  alignItems: 'center',
127
+ cursor: "pointer",
127
128
  gap: _icon.gap
128
129
  }
129
130
  }, formatter ? formatter(series, config) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
@@ -199,7 +199,8 @@ var Column3DSkin = function Column3DSkin(props) {
199
199
  style: {
200
200
  transform: "skew(0deg, 23deg)",
201
201
  transformOrigin: "".concat(x + width / 2, "px ").concat(y + height / 2, "px"),
202
- opacity: opacity
202
+ opacity: opacity,
203
+ cursor: "pointer"
203
204
  }
204
205
  }, color.defs, /*#__PURE__*/_react["default"].createElement("rect", {
205
206
  width: width / 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.5.25",
3
+ "version": "1.5.27",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -244,6 +244,7 @@ const Label: (
244
244
  ...getFontStyle(font),
245
245
  /** Safari Bug **/
246
246
  position:"absolute",
247
+ cursor:"pointer",
247
248
  left:x+(isIOS?iosX:0),
248
249
  top:y+(isIOS?iosY:0)
249
250
  }}
@@ -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;
@@ -85,6 +85,7 @@ export default memo(
85
85
  display: 'flex',
86
86
  opacity: selected === false ? opacity / 100 : 1,
87
87
  alignItems: 'center',
88
+ cursor: "pointer",
88
89
  gap: _icon.gap,
89
90
  }}
90
91
  >
@@ -175,6 +175,7 @@ const Column3DSkin = function (props: any) {
175
175
  transform: `skew(0deg, 23deg)`,
176
176
  transformOrigin: `${x + width / 2}px ${y + height / 2}px`,
177
177
  opacity: opacity,
178
+ cursor:"pointer"
178
179
  }}
179
180
  >
180
181
  {color.defs}