@oliasoft-open-source/charts-library 4.1.3 → 4.1.4

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.
package/dist/index.js CHANGED
@@ -24993,8 +24993,8 @@ const getLineChartDataLabels = (options) => {
24993
24993
  } : { display: false };
24994
24994
  };
24995
24995
  const getUnitsFromLabel = (label) => {
24996
- const matches = label.match(/\[(.*)\]/g);
24997
- const units = matches && matches.length > 0 ? matches[0] : "";
24996
+ const matches = label == null ? void 0 : label.match(/\[(.*)\]/g);
24997
+ const units = matches && (matches == null ? void 0 : matches.length) > 0 ? matches == null ? void 0 : matches[0] : "";
24998
24998
  return units;
24999
24999
  };
25000
25000
  const customFormatNumber = (labelNumber, scientificNotation) => {