@ammarkhalidfarooq/dashboard-package 0.6.29 → 0.6.30

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.cjs.js CHANGED
@@ -17685,8 +17685,8 @@ var OrganicSection = function OrganicSection(_ref) {
17685
17685
  });
17686
17686
  return {
17687
17687
  series: sources.map(function (item) {
17688
- var _item$percentage3;
17689
- return Number((_item$percentage3 = item.percentage) !== null && _item$percentage3 !== void 0 ? _item$percentage3 : 0);
17688
+ var _item$visitors3;
17689
+ return Number((_item$visitors3 = item.visitors) !== null && _item$visitors3 !== void 0 ? _item$visitors3 : 0);
17690
17690
  }),
17691
17691
  labels: sources.map(function (item) {
17692
17692
  return item.source;
@@ -17695,10 +17695,10 @@ var OrganicSection = function OrganicSection(_ref) {
17695
17695
  centerLabel: "visitors",
17696
17696
  centerValue: formatNumber((_breakdown$totalVisit = breakdown.totalVisitors) !== null && _breakdown$totalVisit !== void 0 ? _breakdown$totalVisit : 0),
17697
17697
  items: sources.map(function (item, index) {
17698
- var _item$percentage4;
17698
+ var _item$visitors4;
17699
17699
  return {
17700
17700
  label: item.source,
17701
- val: "".concat(Number((_item$percentage4 = item.percentage) !== null && _item$percentage4 !== void 0 ? _item$percentage4 : 0).toFixed(1), "%"),
17701
+ val: formatNumber((_item$visitors4 = item.visitors) !== null && _item$visitors4 !== void 0 ? _item$visitors4 : 0),
17702
17702
  color: colors[index]
17703
17703
  };
17704
17704
  })