@kashifd/jwero-components 0.5.66 → 0.5.67

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.es.js CHANGED
@@ -58767,8 +58767,9 @@ const DV = ({ name: e, labels: t, data: n }) => {
58767
58767
  );
58768
58768
  };
58769
58769
  function RV(e) {
58770
- const t = [...e].sort((s, c) => s - c), n = t.slice(1).map((s, c) => s - t[c]);
58771
- return n.reduce((s, c) => s + c, 0) / n.length;
58770
+ if (e.length < 2) return 0;
58771
+ const t = [...e].sort((c, d) => c - d), n = t.slice(1).map((c, d) => c - t[d]), s = n.reduce((c, d) => c + d, 0) / n.length;
58772
+ return Math.max(s, 0);
58772
58773
  }
58773
58774
  const IV = ({
58774
58775
  labels: e = [],
@@ -58823,6 +58824,7 @@ const IV = ({
58823
58824
  axisTicks: {
58824
58825
  show: !1
58825
58826
  },
58827
+ min: 0,
58826
58828
  max: s
58827
58829
  },
58828
58830
  yaxis: {