@easyv/charts 1.4.4 → 1.4.5

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.
@@ -177,15 +177,16 @@ var Chart = /*#__PURE__*/(0, _react.memo)(function (_ref) {
177
177
  paddingRight: marginRight
178
178
  } : {
179
179
  width: xLineRange,
180
- height: yLineRange + marginTop // transform:`translateY(${-marginTop}px)`,
181
- // paddingTop:marginTop
180
+ height: yLineRange + marginTop,
181
+ transform: "translateY(".concat(-marginTop, "px)") // paddingTop:marginTop
182
182
 
183
183
  }
184
184
  }, /*#__PURE__*/_react["default"].createElement("svg", {
185
185
  width: "100%",
186
186
  height: "100%",
187
187
  style: {
188
- overflow: "visible"
188
+ overflow: "visible",
189
+ transform: "translateY(".concat(marginTop, "px)")
189
190
  }
190
191
  }, series.map(function (_ref2, index) {
191
192
  var Component = _ref2.Component,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -163,10 +163,10 @@ const Chart = memo(
163
163
  }:{
164
164
  width:xLineRange,
165
165
  height:yLineRange+marginTop,
166
- // transform:`translateY(${-marginTop}px)`,
166
+ transform:`translateY(${-marginTop}px)`,
167
167
  // paddingTop:marginTop
168
168
  }}>
169
- <svg width="100%" height="100%" style={{overflow:"visible"}}>
169
+ <svg width="100%" height="100%" style={{overflow:"visible",transform:`translateY(${marginTop}px)`}}>
170
170
  {series.map(({ Component, yOrZ, ...config }, index) => {
171
171
  const yAxis = axes.get(yOrZ);
172
172
  return (