@easyv/charts 1.7.26 → 1.7.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.
@@ -149,7 +149,7 @@ var Chart = /*#__PURE__*/(0, _react.memo)(function (_ref2) {
149
149
  function checkData(data) {
150
150
  try {
151
151
  var hasS = data.some(function (d) {
152
- return d.s !== undefined;
152
+ return d.s;
153
153
  });
154
154
  if (!hasS) {
155
155
  return data.map(function (d) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.7.26",
3
+ "version": "1.7.27",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -134,7 +134,7 @@ const Chart = memo(
134
134
  //预检数据格式是否规范
135
135
  function checkData(data){
136
136
  try{
137
- const hasS = data.some(d=>d.s!==undefined);
137
+ const hasS = data.some(d=>d.s);
138
138
  if(!hasS){
139
139
  return data.map(d=>{
140
140
  return {