@ammarkhalidfarooq/dashboard-package 0.3.21 → 0.3.22
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 +5 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -0
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4854,8 +4854,11 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
4854
4854
|
var mainChart = extendedCharts.find(function (c) {
|
|
4855
4855
|
return c.label === selectedInfo.label;
|
|
4856
4856
|
}) || primaryCharts[0];
|
|
4857
|
+
console.log("OverallSection - activeMetric:", activeMetric);
|
|
4858
|
+
console.log("OverallSection - apiData keys:", Object.keys(apiData || {}));
|
|
4857
4859
|
if (activeMetric === "Total Raised") {
|
|
4858
4860
|
var hasStackedData = (apiData === null || apiData === void 0 ? void 0 : apiData.paidAds) || (apiData === null || apiData === void 0 ? void 0 : apiData.email) || (apiData === null || apiData === void 0 ? void 0 : apiData.organic);
|
|
4861
|
+
console.log("OverallSection - hasStackedData:", !!hasStackedData);
|
|
4859
4862
|
if (hasStackedData) {
|
|
4860
4863
|
var categories = ((apiData === null || apiData === void 0 ? void 0 : apiData.organic) || (apiData === null || apiData === void 0 ? void 0 : apiData.paidAds) || (apiData === null || apiData === void 0 ? void 0 : apiData.email) || []).map(function (item) {
|
|
4861
4864
|
return item.date;
|
|
@@ -4876,6 +4879,7 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
4876
4879
|
return item.value;
|
|
4877
4880
|
})
|
|
4878
4881
|
}];
|
|
4882
|
+
console.log("OverallSection - transformed series:", series);
|
|
4879
4883
|
mainChart = _objectSpread2(_objectSpread2({}, mainChart), {}, {
|
|
4880
4884
|
label: "Total revenue trend",
|
|
4881
4885
|
data: undefined,
|
|
@@ -4892,6 +4896,7 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
4892
4896
|
value: selectedInfo.value,
|
|
4893
4897
|
trend: selectedInfo.subValue
|
|
4894
4898
|
});
|
|
4899
|
+
console.log("OverallSection - Final mainChart:", mainChart);
|
|
4895
4900
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
4896
4901
|
children: [/*#__PURE__*/jsx(Box, {
|
|
4897
4902
|
sx: {
|