@easyv/charts 1.0.65 → 1.0.66

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.
@@ -27,7 +27,7 @@
27
27
  .showAllStyle {
28
28
  display: grid;
29
29
  width: 100%;
30
- grid-template-columns: 40% 35% 30%;
30
+ grid-template-columns: 40% 30% 30%;
31
31
  align-items: center;
32
32
  flex-direction: row;
33
33
  justify-content: space-between;
@@ -64,7 +64,9 @@ var pieLegendFormatter = function pieLegendFormatter(_ref, _ref2) {
64
64
  whiteSpace: "nowrap"
65
65
  })
66
66
  }, displayName), showValue && /*#__PURE__*/React.createElement("span", {
67
- style: _objectSpread(_objectSpread({}, (0, _utils.getFontStyle)(valueFont)), {}, {
67
+ style: _objectSpread(_objectSpread({
68
+ whiteSpace: "nowrap"
69
+ }, (0, _utils.getFontStyle)(valueFont)), {}, {
68
70
  marginLeft: valueGap,
69
71
  display: 'flex',
70
72
  color: valueSameColor ? _color : valueFont.color,
@@ -73,11 +75,14 @@ var pieLegendFormatter = function pieLegendFormatter(_ref, _ref2) {
73
75
  })
74
76
  }, showValue && /*#__PURE__*/React.createElement("span", null, data.y), showSuffix && /*#__PURE__*/React.createElement("span", {
75
77
  style: {
78
+ whiteSpace: "nowrap",
76
79
  fontSize: fontSize,
77
80
  transform: 'translate3d(' + x + 'px, ' + y + 'px, 0px)'
78
81
  }
79
82
  }, text)), showPercent && /*#__PURE__*/React.createElement("span", {
80
- style: _objectSpread(_objectSpread({}, (0, _utils.getFontStyle)(percentFont)), {}, {
83
+ style: _objectSpread(_objectSpread({
84
+ whiteSpace: "nowrap"
85
+ }, (0, _utils.getFontStyle)(percentFont)), {}, {
81
86
  marginLeft: percentGap,
82
87
  color: percentSameColor ? _color : percentFont.color
83
88
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -27,7 +27,7 @@
27
27
  .showAllStyle {
28
28
  display: grid;
29
29
  width: 100%;
30
- grid-template-columns: 40% 35% 30%;
30
+ grid-template-columns: 40% 30% 30%;
31
31
  align-items: center;
32
32
  flex-direction: row;
33
33
  justify-content: space-between;
@@ -49,6 +49,7 @@ export const pieLegendFormatter = (
49
49
  {showValue && (
50
50
  <span
51
51
  style={{
52
+ whiteSpace:"nowrap",
52
53
  ...getFontStyle(valueFont),
53
54
  marginLeft: valueGap,
54
55
  display: 'flex',
@@ -61,6 +62,7 @@ export const pieLegendFormatter = (
61
62
  {showSuffix && (
62
63
  <span
63
64
  style={{
65
+ whiteSpace:"nowrap",
64
66
  fontSize,
65
67
  transform: 'translate3d(' + x + 'px, ' + y + 'px, 0px)',
66
68
  }}
@@ -73,6 +75,7 @@ export const pieLegendFormatter = (
73
75
  {showPercent && (
74
76
  <span
75
77
  style={{
78
+ whiteSpace:"nowrap",
76
79
  ...getFontStyle(percentFont),
77
80
  marginLeft: percentGap,
78
81
  color: percentSameColor ? _color : percentFont.color,